Discussion Locked

Batch Running EXE in Background

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

We have an asset management program taht we want to runn the asset scan once a month. This setup is implemented in batch scripts to check the number of days since the script was run and then run the scan if neccessary.

Our problem is that our script runs visible in a DOS batch script window. If it runs the scan, then if you close the script window, you kill the scan and we are unable to get the asset data. Is there a way to be able to call our asset program (An exe file) so that it runs in the background and the script window can close?

If not, is there anyway that we can add something to the command line to run the script in the background either hidden or minimized?

5 replies

by don christner

If you create a shortcut to the exe, on the properties of the shortcut you can tell it to run Normal window, minimized or maximized.

Don

by oddballsixactual

We are not trying to create a shortcut. What we need to do is create a commandline statement that will run the script either minimized or hidden. For example, running " $" will run a program in the background in linux. We are looking for the same sort of thing for the cmd shell for NT.

by don christner

Go to a DOS prompt and type START /? |more. This will show you how to start a new window to run a command in. Minimized is one of the options for this command. You would type something like START /MIN MYCOMMAND.EXE

Don

This discussion is closed to new replies.