General discussion

Locked

Batch Running EXE in Background

By OddballSixActual ·
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?

This conversation is currently closed to new comments.

5 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

Batch Running EXE in Background

by Don Christner In reply to Batch Running EXE in Back ...

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

Collapse -

Batch Running EXE in Background

by OddballSixActual In reply to Batch Running EXE in Back ...

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 "<commandline path> $" will run a program in the background in linux. We are looking for the same sort of thing for the cmd shell for NT.

Collapse -

Batch Running EXE in Background

by Don Christner In reply to Batch Running EXE in Back ...

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

Collapse -

Batch Running EXE in Background

by OddballSixActual In reply to Batch Running EXE in Back ...

Poster rated this answer

Collapse -

Batch Running EXE in Background

by OddballSixActual In reply to Batch Running EXE in Back ...

This question was closed by the author

Back to Windows Forum
5 total posts (Page 1 of 1)  

Related Discussions

Related Forums