|
|
FAQ
Search
Memberlist
Usergroups
Register
Profile
Private messages
Log in
|
|
| Author |
Message |
dl_mcfadden@yahoo.com Guest
|
Posted: Wed Sep 05, 2007 7:34 pm Post subject: batch file |
|
|
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> |
|
| Back to top |
|
 |
|
|
Adam Leinss Guest
|
Posted: Wed Sep 05, 2007 11:36 pm Post subject: Re: batch file |
|
|
"dl_mcfadden@yahoo.com" <dl_mcfadden@yahoo.com> wrote in
news:1189002895.941228.284550@50g2000hsm.googlegroups.com:
| Quote: | 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 |
|
| Back to top |
|
 |
dl_mcfadden@yahoo.com Guest
|
Posted: Thu Sep 06, 2007 7:29 pm Post subject: Re: batch file |
|
|
On Sep 5, 2:36 pm, Adam Leinss <alei...@hotmail.com> wrote:
| Quote: | "dl_mcfad...@yahoo.com" <dl_mcfad...@yahoo.com> wrote innews:1189002895.941228.284550@50g2000hsm.googlegroups.com:
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. |
|
| Back to top |
|
 |
|
|