buddivictory 0 Posted January 23, 2004 Share Posted January 23, 2004 How can I execute a net use command with AutoIt 3. In Autoit version 2 I would type: Run, %COMSPEC% /c net use z: \\\\servername\\sharedfolderPlease advise. Thanks Link to post Share on other sites
Administrators Jon 1,251 Posted January 23, 2004 Administrators Share Posted January 23, 2004 RunWait(@Comspec & '/c net use z: \\servername\sharedfolder') Deployment Blog: https://www.autoitconsulting.com/site/blog/ SCCM SDK Programming: https://www.autoitconsulting.com/site/sccm-sdk/ Link to post Share on other sites
redndahead 0 Posted January 23, 2004 Share Posted January 23, 2004 Unless you have spaces then it's RunWait(@comspec & 'net use "\\Severname\Share Folder"') Notice that after share folder it is a quotation mark " then an apostrophe ' red Link to post Share on other sites
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