Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations dencom on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how can I script a process in the background?

Status
Not open for further replies.

sibawe2000

IS-IT--Management
Aug 4, 2005
27
FR
Hi all,

I'm writting an MS-DOS batch script that runs 2 shell commands ( => no need for complicated VBS).
I need the first command to generate a process in the background.

simply put: what is the MS-DOS equivalent of Unix bash's "&" at the end of a command ?

Thanks for your help.
If anyone knows of a useful site for unix users who try to play with MS-DOS scripts ...

sibawe2000
 
Hi,
Sorry Xaqte, I can't install extra-software on my platform. Besides, if I really had to, I'd install some Unix type shell (cygwin, djcpp)

FYI, "start" in MS-DOS shell opens a sub-shell, executing whatever comes after the "start..." command.

This does the trick.

Regards
 
Have you tried this?

start /?

You'll notice that there really isn't a way to have it run in the classic background that you are used to in the *nix world, as Windows is more GUI based, but from the output that I saw of start /? you could include the start "title" /min in your batch...
 
Thanks tfg13

start /B will prevent a new window from opening, which is as close as you can get to *NIX's "&".

Have a nice week-end
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top