Sign in to follow this  
Followers 0
440LVB

RunWait @COMSPEC doesn't work with @SW_HIDE

2 posts in this topic

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.

Share this post


Link to post
Share on other sites



I found the solution : I've put @SW_HIDE in quotes. The example in the help file contains errors.

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0