SilverMiraida Posted August 31, 2012 Share Posted August 31, 2012 This is my script Run("rasdial ""net"" username password", @WorkingDir, @SW_HIDE) The problem is, it keeps executing and shutting down endlessly, or if I write this RunWait instead of Run, it keeps executing endlessly without shutting down the instances of the program. I don't know if this happens with this code only, or with others, because I've just got my new hard disk (the other broke), so the windows is new, everything is just installed, and it's my first script on this new windows (windows 7), I had this script before at startup, before my hard disk broke, and now I wanna recreate it so my new auto-connects at startup, without any window showing up. Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted August 31, 2012 Moderators Share Posted August 31, 2012 Hi, SilverMiraida, welcome to the forum. I haven't used Rasdial in a long time, but something like this should work for you (untested): ShellExecute("rasdial.exe", '"net" "username" "password"', "") "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
SilverMiraida Posted September 1, 2012 Author Share Posted September 1, 2012 Thank you for welcoming me kind sir. I have used the following code with great success, thanks to you. ShellExecute("rasdial.exe", '"connection name" "username" "password"', "", "", @SW_HIDE) Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted September 4, 2012 Moderators Share Posted September 4, 2012 Glad to be of service "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
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