Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Computer Certification > A+ Certification > batch file

Reply
Thread Tools

batch file

 
 
dl_mcfadden@yahoo.com
Guest
Posts: n/a
 
      09-05-2007
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>

 
Reply With Quote
 
 
 
 
Adam Leinss
Guest
Posts: n/a
 
      09-05-2007
"(E-Mail Removed)" <(E-Mail Removed)> wrote in
news:(E-Mail Removed) ups.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 at www.leinss.com/blog
 
Reply With Quote
 
 
 
 
dl_mcfadden@yahoo.com
Guest
Posts: n/a
 
      09-06-2007
On Sep 5, 2:36 pm, Adam Leinss <(E-Mail Removed)> wrote:
> "(E-Mail Removed)" <(E-Mail Removed)> wrote innews:(E-Mail Removed) roups.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.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
batch file/jar file sihle87@gmail.com Java 2 02-16-2008 01:34 AM
How to execute Jar file using Batch file. Sriram Java 1 01-31-2008 03:59 PM
creating a file within a subdir in DOS batch file =?Utf-8?B?bWF0bHlu?= ASP .Net 0 09-20-2007 01:28 PM
Batch File - Renaming File with DATE Tom Computer Support 11 03-05-2007 10:33 PM
Compilation Batch File Won't Pipe To File Luc The Perverse Java 7 10-23-2005 10:17 AM



Advertisments