Jump to content

Recommended Posts

I am trying to make a script to reconnect internet when my connection is dropped.

WHILE WinExists ("État de IOL Broadband")
run ("dial.bat", "G:\autoDial")

how do i get it to go back to start instead of closing when it run the dial.bat?

Link to post
Share on other sites

I have that .bat in startup menu to launch connection on windows startup

rasdial "IOL Broadband" login password

I don't understand

Run(@comspec & " /c " & "C:\shortcutToDialUp.lnk", "", @SW_HIDE)

wouldn't something like this work aswell?

Run("Raccourci vers IOL Broadband.lnk", "C:\Documents and Settings\All Users\Bureau")
Link to post
Share on other sites

You can only use Run/RunWait on an executable file (exe, batch, com, et cetera). You have to pass any other file type through the command interpreter in order to launch the default application associated with that particular link/file type.

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
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...