Jump to content

Recommended Posts

Posted

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.

  • Moderators
Posted

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!

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...