running dos shell in background

Dear all,  I am using some old scripts written in Gauss. I launch a bunch of dos commands (as copy, start etc) from this Gauss scripts. The problem is that I have never been able to run them in background. The dos window opens and its annoying, you lose control of what you were doing and you have to wait for it to finish. Gauss uses the Gauss commands "shell" or "dos" to open a new shell. Then from there I can run stuff in background as "start /B", but the problem is that the cmd window is open and it gains control. So the question is: how to call a cmd window from Gauss in background?

1 Answer


I think the best you can do is to use execbg to execute the process in the background and use the Windows cmd.exe flag /Min to start the CMD window minimized. Something like this:

execbg("cmd.exe","/c START /MIN mkdir mynewdirname");

You must login to post answers.

Have a Specific Question?

Get a real answer from a real person

Need Support?

Get help from our friendly experts.

Try GAUSS for 14 days for FREE

See what GAUSS can do for your data

© Aptech Systems, Inc. All rights reserved.

Privacy Policy