Re: Batch FTP
- From: "Pegasus [MVP]" <news@xxxxxxxxxxxxx>
- Date: Tue, 11 Aug 2009 19:03:25 +0200
"GregNga" <GregNga@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:C68B1FE9-40D2-40C8-A466-C42A47329A4C@xxxxxxxxxxxxxxxx
I have a text file, FTPSCRIPT in MYDIR, that contains a series of FTP
commands. Whenever I go to the DOS prompt and execute the command
FTP -s:C:\MYDIR\FTPSCRIPT it works perfectly and FTPs the file
successfully
However, When I put it in a .bat file that contains only the command
FTP -s:C:\MYDIR\FTPSCRIPT and click on the .bat file it appears to get in
a
loop, displaying the command FTP -s:C:\MYDIR\FTPSCRIPT over and over in
the
DOS window and I finally have to cancel it without it ever transferring
the
file.
Why does this work OK interactively on the DOS prompt but not in a .bat
file
and how can I make it work in batch mode. My objective is to put an icon
on
someones desktop so they can click it to run an FTP script
There is no difference (or hardly any . . .) between a batch file and the
Command Prompt. If your batch file loops then this is probably because you
have a batch file somewhere that you called ftp.bat. This is bad news - you
must never give a batch file the same name as your system files.
.
- Follow-Ups:
- Re: Batch FTP
- From: GregNga
- Re: Batch FTP
- References:
- Batch FTP
- From: GregNga
- Batch FTP
- Prev by Date: Re: Windows won't maximize after a while
- Next by Date: Re: Mapped drive will not go away
- Previous by thread: Batch FTP
- Next by thread: Re: Batch FTP
- Index(es):
Relevant Pages
|