440LVB Posted July 5, 2005 Share Posted July 5, 2005 Hello This is my problem : I want to execute DOS commands in hidden windows. When I don't hide the DOS window, it works well, but when I add '@SW_HIDE', the command is not executed. This is the line which works : Run(@COMSPEC & " /c " & "c:\winnt\system32\net use T: \\portia.inapg.inra.fr\td") And this one doesn't change anything : Run(@COMSPEC & " /c " & "c:\winnt\system32\net use T: \\portia.inapg.inra.fr\td","",@SW_HIDE) Thanks for ideas. Link to comment Share on other sites More sharing options...
440LVB Posted July 5, 2005 Author Share Posted July 5, 2005 I found the solution : I've put @SW_HIDE in quotes. The example in the help file contains errors. 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