Sign in to follow this  
Followers 0
pgr

Need help with DOS Command

3 posts in this topic

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

Share this post


Link to post
Share on other sites



Try the beta:

DriveMapAdd( "device", "remote share" [, flags [, "user" [, "password"]]] )


Who else would I be?

Share this post


Link to post
Share on other sites

Try the beta:

Thanks for the hint, I´ll give this a try ;)

pgr

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