Akton Posted April 3, 2011 Share Posted April 3, 2011 Hi, I'm doing a RunWait(@ComSpec & " /c " & "commandName >output.txt") Which works fine, except a dos window opens - and since i need to call this several times it becomes annoying (and you can't work with the compute meaniwhile) that this window pops up and closes up and closes etc. Is there someway i can run the command above, and capture the output but don't have the DOS window flash open? (Windows 7 ) Link to comment Share on other sites More sharing options...
andygo Posted April 3, 2011 Share Posted April 3, 2011 @SW_HIDE should do it. Link to comment Share on other sites More sharing options...
Akton Posted April 3, 2011 Author Share Posted April 3, 2011 @SW_HIDE should do it.I tried that but it didn't work.. *sigh*I wonder if that is because the command opens its own window? Link to comment Share on other sites More sharing options...
andygo Posted April 3, 2011 Share Posted April 3, 2011 I tried that but it didn't work.. *sigh* I wonder if that is because the command opens its own window? mabye you forgot the working dir or 2 "" between your command and the @SW_HIDE: RunWait(@ComSpec & " /c " & "commandName >output.txt", "", @SW_HIDE ) if you dont want to set workingdir, you anyway have to write like this. Link to comment Share on other sites More sharing options...
Akton Posted April 4, 2011 Author Share Posted April 4, 2011 mabye you forgot the working dir or 2 "" between your command and the @SW_HIDE: RunWait(@ComSpec & " /c " & "commandName >output.txt", "", @SW_HIDE ) if you dont want to set workingdir, you anyway have to write like this. You were right, I forgot the "" - indeed it works. Thanks for your help Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now