Computing.Net > Forums > Disk Operating System > Batch File run Program

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.

Batch File run Program

Reply to Message Icon

Name: elmoso
Date: April 4, 2003 at 10:04:57 Pacific
OS: w2k
CPU/Ram: 1.8ghz/260MB
Comment:

I'm having a little problem with a batch file of mine. I have put some options in it and one of the options is to run a program. What happens is. The program launches with no problem, but my batch file does not return to the options window. It stays at a black window. When I close the program, then I returns to my options window. How can I make my batch launch the program and return to my options?

Please advise
Thanx



Sponsored Link
Ads by Google

Response Number 1
Name: bitbyte
Date: April 4, 2003 at 13:38:19 Pacific
Reply:


if you mean
MENU is a batchfile and you can select a windows program and the batchfile waits until the widowsprogram ends

then...

you have to run the windowsprogram from the bacthfile with the START command

example
-------------

@echo off
:a
echo after pressing a key the taskmanager starts
pause
start taskmgr
goto a


does it help?


0

Response Number 2
Name: roytam1
Date: April 4, 2003 at 17:53:12 Pacific
Reply:

Why don't you use Start /w ??

example
-------------
start /w taskmgr



0

Response Number 3
Name: bitbyte
Date: April 5, 2003 at 00:25:47 Pacific
Reply:


start /w has the same effect as you run the program direct from the batchfile, i think he wants that the batchfile does not wait for the end of the called progam


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


Can't setup DOS string. Batch Compilier



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: Batch File run Program

Batch File Installer Program www.computing.net/answers/dos/batch-file-installer-program/10810.html

Problems running batch file with xcopy command www.computing.net/answers/dos/problems-running-batch-file-with-xcopy-command/5754.html

how do I do a loop in a DOS batch file? www.computing.net/answers/dos/how-do-i-do-a-loop-in-a-dos-batch-file/6793.html