G
GregNga
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
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