Jump to content

Need help with DOS Command


pgr
 Share

Recommended Posts

Hi!

I am pretty new to AutoIT and need some help with something I tried to realize with it...

My intention is to write a Script that uses the net use command of windows to connect a share... i saw the impressive encryption sample gui and planned to use some encryption functions in my script.

When finished it sould look like that:

net use X: \\server\share /USER:username /PASSWORD:encrypted_password

But i got a hanging Script without even touching the encryption stuff :P

net use X: \\server\share

I tried it by using the RunWait command, but the Script simply hangs...

RunWait(@ComSpec & " /c " & 'net use X: \\server\share', "", @SW_HIDE)

Any suggestions? Thx in Advance ;)

pgr

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
 Share

  • Recently Browsing   0 members

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