Try putting
@echo off
as the first line in your batch file.
--
Best regards,
Dave Colliver.
http://www.AshfieldFOCUS.com
~~
http://www.FOCUSPortals.com - Local franchises available
"GregNga" <(E-Mail Removed)> wrote in message
news:5A0E4B9A-6117-48D8-A1EF-(E-Mail Removed)...
> You were correct, I renamed the .bat file and it worked perfectly.
>
> 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
> window entirely when the FTP command is executed in batch
>
> "Pegasus [MVP]" wrote:
>
>>
>> "GregNga" <(E-Mail Removed)> wrote in message
>> news:C68B1FE9-40D2-40C8-A466-(E-Mail Removed)...
>> >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.
>>
>>
>>