Dear all,
I find myself running a rather long loop which also calls shell multiple times in Stata 15.1 on Windows. Consequently, I have blue cmd windows popping up regularly, "stealing" the focus of the system, stopping me from doing other things (at least without disturbance). I am aware of the difference between shell and winexec (stata waits for the shelled command to complete or not), but that's not really useful here as they both "steal" the systems focus.
Is there a way to call shell and winexec in a minimized or silent manner so that those tasks are carried out in the background (but still complete prior to returning to Stata in the case of shell)? I have googled around but not been able to find anything.
An additional, possibly relevant point is that sometimes in my scripts the shell prompt should complete prior to stata continuing (i.e. shell is required and not just winexec, although a solution for both would be ideal), although not always (so sometimes I use shell and other times winexec).
Any help would be much appreciated!
Alan
I find myself running a rather long loop which also calls shell multiple times in Stata 15.1 on Windows. Consequently, I have blue cmd windows popping up regularly, "stealing" the focus of the system, stopping me from doing other things (at least without disturbance). I am aware of the difference between shell and winexec (stata waits for the shelled command to complete or not), but that's not really useful here as they both "steal" the systems focus.
Is there a way to call shell and winexec in a minimized or silent manner so that those tasks are carried out in the background (but still complete prior to returning to Stata in the case of shell)? I have googled around but not been able to find anything.
An additional, possibly relevant point is that sometimes in my scripts the shell prompt should complete prior to stata continuing (i.e. shell is required and not just winexec, although a solution for both would be ideal), although not always (so sometimes I use shell and other times winexec).
Any help would be much appreciated!
Alan
Comment