batch file

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

  1. dl_mcfadden

    dl_mcfadden 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>
     
    dl_mcfadden, Sep 5, 2007
    #1
    1. Advertisements

  2. dl_mcfadden

    Adam Leinss Guest

    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
     
    Adam Leinss, Sep 5, 2007
    #2
    1. Advertisements

  3. dl_mcfadden

    dl_mcfadden Guest

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

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.