Re: Batch FTP

Tech-Archive recommends: Fix windows errors by optimizing your registry




"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.


.



Relevant Pages

  • Re: ftp on IIS 6.0 w2k3
    ... Try a batch file that writes a simple message out to a log file, ... to allow null session shares so that it can. ... Software Design Engineer, Internet Information Server (FTP) ... > command runs from a dos shell. ...
    (microsoft.public.inetserver.iis)
  • Re: Batch FTP
    ... Is there any way to supress the display the supression of the FTP commands ... on the DOS window or better yet supress/minimize the display of the DOS ... Whenever I go to the DOS prompt and execute the command ... If your batch file loops then this is probably because ...
    (microsoft.public.windowsxp.general)
  • Re: Batch FTP
    ... I renamed the .bat file and it worked perfectly. ... Is there any way to supress the display the supression of the FTP commands ... Whenever I go to the DOS prompt and execute the command ... If your batch file loops then this is probably because you ...
    (microsoft.public.windowsxp.general)
  • Re: Stupid Windows Tricks
    ... What happens if you try and run start c:\windows\system32\notepad.exe from a CMD prompt? ... the "start" command has been disabled... ... That is, we can go to a DOS prompt, and hamd-enter the identical line, ... But from the BATch file, ...
    (comp.lang.clipper)
  • Batch FTP
    ... I have a text file, FTPSCRIPT in MYDIR, that contains a series of FTP ... When I put it in a .bat file that contains only the command ... Why does this work OK interactively on the DOS prompt but not in a .bat file ...
    (microsoft.public.windowsxp.general)