Jump to content

RunWait @COMSPEC doesn't work with @SW_HIDE

Recommended Posts


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

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...