Computing.Net > Forums > Disk Operating System > Keeping DOS windows open

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Keeping DOS windows open

Reply to Message Icon

Name: James
Date: June 1, 2000 at 06:01:47 Pacific
Comment:

Is it possible to keep open a DOS window after a batch file has finished executing?

I'm calling ftp from a batch file, and want to keep open the new window after the ftp session has ended. My current batch command is:

START ftp -n -s:%filename% %hostIP%

Thanks for any help,

James

OR, is there a way to copy the ftp screen printout to a file (i.e. pipe the ftp session in to a text file)??



Sponsored Link
Ads by Google

Response Number 1
Name: Igor M
Date: June 1, 2000 at 07:03:26 Pacific
Reply:

Hi,

Right click on the shortcut you use to run the batch file (or on the file itself) and select Properties. Then on the Program tab uncheck the box Close window....

Good luck, Igor


0

Response Number 2
Name: Herr Kaus
Date: June 1, 2000 at 07:06:59 Pacific
Reply:

Just so you know, you are using a Windows program (FTP.EXE) in a Windows environment. This does not belong to the DOS forum.


0

Response Number 3
Name: James
Date: June 1, 2000 at 07:37:39 Pacific
Reply:

Thanks for the help Igor, but as you can see the batch file opens a *new* window with the START command - so changing the Windows settings won't work.

Anyone else?


0

Response Number 4
Name: browser
Date: June 1, 2000 at 08:02:45 Pacific
Reply:

Try making a separate batch file containing the line: START ftp -n -s:%filename% %hostIP% .

Name it something like STARTFTP.BAT

Then in your main batch file CALL the second one and when finished it should return to the first and stay open for further processing. For example:

call startftp.bat

Hope this helps, Good Luck


0

Response Number 5
Name: Bjarni Juliusson
Date: June 1, 2000 at 12:03:48 Pacific
Reply:

Just to clarify:
What you want to do is have a batfile that STARTs ftp.exe, and then ftp.exe should remain on-screen? In that case, changing the close windows setting for ftp.exe is the way to do it. ftp.exe is a windows program, and start runs a program separate from the current dos task. Whatever happens to the batch task after you have ran ftp.exe has no effect on ftp.exe.


0

Related Posts

See More



Sponsored Link
Ads by Google
Reply to Message Icon






Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Disk Operating System Forum Home


Sponsored links

Ads by Google


Results for: Keeping DOS windows open

log dos-window/write a dos process>file www.computing.net/answers/dos/log-doswindowwrite-a-dos-processfile/8605.html

open a DOS window from another DOS window www.computing.net/answers/dos/open-a-dos-window-from-another-dos-window/207.html

help on ms-dos window ! www.computing.net/answers/dos/help-on-msdos-window-/8889.html