batch file
 




IT Certification FAQ

 
|
Home
|
Microsoft
|
CISCO
|
CompTIA
|
Exam/Study FAQ
|
Employment FAQ
| Links  | Forums  |
Book Reviews


FAQFAQ  SearchSearch  MemberlistMemberlist  UsergroupsUsergroups  RegisterRegister  ProfileProfile  Log in to check your private messagesPrivate messages  Log inLog in

batch file

 
Post new topic   Reply to topic    Forum Index -> alt.certification.a-plus
Author Message
dl_mcfadden@yahoo.com
Guest





PostPosted: Wed Sep 05, 2007 7:34 pm    Post subject: batch file Reply with 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??
thanks


S:\APSWorkflow_FTP>ftp -n -sdisgusted\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





PostPosted: Wed Sep 05, 2007 11:36 pm    Post subject: Re: batch file Reply with quote

"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





PostPosted: Thu Sep 06, 2007 7:29 pm    Post subject: Re: batch file Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    Forum Index -> alt.certification.a-plus All times are GMT
Page 1 of 1

 

Copyright © 2002-2006 Web-S-Sense Pty. Ltd. All rights reserved.

Powered by phpBB
Advertising | Policies/Disclaimers | Contact us | Link to us


Featured Sites: Free Antivirus and Antispyware Info | Free PC Support | MCSE Directory