batch file

Discussion in 'A+ Certification' started by dl_mcfadden@yahoo.com, Sep 5, 2007.

  1. Guest

    I have a batch file that I am having problems with, I am taking files
    and moving them across our server but when I try to delete the files I
    am getting this error can some one please help??
    thanks


    S:\APSWorkflow_FTP>ftp -n -s:\\imgsvr\director5\APSWorkflow_ftp
    \APS.txt
    ftp> OPEN 172.21.1.41
    Connected to 172.21.1.41.
    220 FTP Services for ClearPath MCP: Server version 51.189.8003
    ftp> USER itiftp
    331 UserName received; please send the PassWord.

    230 User ITIFTP logged in; you may proceed.
    ftp>
    ftp> quote "site mapin TEXT (block=20, rec=180)"
    200-Local SITE Command processing report
    MAPIn value(s) just set:
    MAPIN Text
    Characterset = Not Specified
    FileCharacterset = Not Specified
    ProtCharacterset = Not Specified
    Blockingfactor = 20
    Filekind = Not Specified
    Recordlength = 180
    Add = All
    Folding = Not Specified
    ID = Not Specified
    Tab = Not Specified
    200 End of Local SITE Command processing report
    ftp> put "\\fncrs01\apsupload\APS01.TXT" "(ITI)APS01 on disk"
    200 The next Data Port open will be Active to 172.21.1.32 #1451.
    150 Opening a Type ASCII Data connection for "(ITI)APS01 ON DISK".
    226 Transfer complete; Data connection closed.
    ftp: 326 bytes sent in 0.00Seconds 326000.00Kbytes/sec.
    ftp> put "\\fncrs01\apsupload\APS02.TXT" "(ITI)APS02 on disk"
    200 The next Data Port open will be Active to 172.21.1.32 #1452.
    150 Opening a Type ASCII Data connection for "(ITI)APS02 ON DISK".
    226 Transfer complete; Data connection closed.
    ftp: 325 bytes sent in 0.00Seconds 325000.00Kbytes/sec.
    ftp> put "\\fncrs01\apsupload\APS05.TXT" "(ITI)APS05 on disk"
    \\fncrs01\apsupload\APS05.TXT: File not found
    ftp> put "\\fncrs01\apsupload\APS06.TXT" "(ITI)APS06 on disk"
    200 The next Data Port open will be Active to 172.21.1.32 #1453.
    150 Opening a Type ASCII Data connection for "(ITI)APS06 ON DISK".
    226 Transfer complete; Data connection closed.
    ftp: 325 bytes sent in 0.00Seconds 325000.00Kbytes/sec.
    ftp> delete "\\fncrs01\APSUpload\APS01"
    501-Error in DELE command parameters; Scanning \\fncrs01\APSUpload\.
    501 Invalid File Name. Scanning \
    ftp> delete "\\fncrs01\apsupload\APS02"
    501-Error in DELE command parameters; Scanning \\fncrs01\apsupload\.
    501 Invalid File Name. Scanning \
    ftp> delete "\\fncrs01\apsupload\APS05"
    501-Error in DELE command parameters; Scanning \\fncrs01\apsupload\.
    501 Invalid File Name. Scanning \
    ftp> delete "\\fncrs01\APSUpload\aps06"
    501-Error in DELE command parameters; Scanning \\fncrs01\APSUpload\.
    501 Invalid File Name. Scanning \
    ftp> del "\\fncrs01\apsupload\aps01.txt"
    501-Error in DELE command parameters; Scanning \\fncrs01\apsupload\.
    501 Invalid File Name. Scanning \
    ftp>
    ftp>
     
    , Sep 5, 2007
    #1
    1. Advertising

  2. Adam Leinss Guest

    "" <> wrote in
    news::

    > I have a batch file that I am having problems with, I am taking
    > files and moving them across our server but when I try to delete
    > the files I am getting this error can some one please help??


    Do you have to use FTP? If not, I would just make a batch file or
    VBScript file, map a drive to the server in question and do your
    operations that way.

    Otherwise, you probably need to use "CD" to get to the root of the
    folder you are trying to get to and drop the UNC names, particularly
    the "\\"

    Adam
    --
    Visit my PC Tech blog at www.leinss.com/blog
     
    Adam Leinss, Sep 5, 2007
    #2
    1. Advertising

  3. Guest

    On Sep 5, 2:36 pm, Adam Leinss <> wrote:
    > "" <> wrote innews::
    >
    > > I have a batch file that I am having problems with, I am taking
    > > files and moving them across our server but when I try to delete
    > > the files I am getting this error can some one please help??

    >
    > Do you have to use FTP? If not, I would just make a batch file or
    > VBScript file, map a drive to the server in question and do your
    > operations that way.
    >
    > Otherwise, you probably need to use "CD" to get to the root of the
    > folder you are trying to get to and drop the UNC names, particularly
    > the "\\"
    >
    > Adam
    > --
    > Visit my PC Tech blog atwww.leinss.com/blog


    thanks for the help and I will visit your blog.
     
    , Sep 6, 2007
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Gerard Bok

    Re: Ability to send an email message from within a batch file

    Gerard Bok, Sep 8, 2004, in forum: Microsoft Certification
    Replies:
    0
    Views:
    612
    Gerard Bok
    Sep 8, 2004
  2. BatchFile Bob

    Batch File Delete?

    BatchFile Bob, Jun 18, 2004, in forum: MCSE
    Replies:
    4
    Views:
    6,675
    adamavich
    Aug 1, 2006
  3. Gavin
    Replies:
    4
    Views:
    8,647
  4. Tom

    Batch File - Renaming File with DATE

    Tom, Mar 3, 2007, in forum: Computer Support
    Replies:
    11
    Views:
    7,935
  5. lbbss

    Batch file to backup one Doc file?

    lbbss, Mar 23, 2010, in forum: Computer Support
    Replies:
    10
    Views:
    574
    sandy58
    Mar 23, 2010
Loading...

Share This Page