Jump to content

Recommended Posts

Posted

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

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

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

Posted

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")
Posted

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.

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
×
×
  • Create New...