Jump to content

Help with .bat


Lam0r
 Share

Recommended Posts

I am a beginner in this Progamm

and my english is not well but i need help

i have an script

;Delay von 1 Stunden

Sleep (2000)

; 1.agBot ,2.nuConnector ,3.SRO closen

ProcessClose ("nuConnector9.22.exe")

ProcessClose ( "agBot.exe")

ProcessClose ( "sro_client.exe")

Sleep (20000)

;Starte agBot&nuConnector

Run ( "C:\Program Files (x86)\Silkroad\AgBot\agBot.bat" )

but one parth of the script is that run a .bat but is dont work

plz help me

Link to comment
Share on other sites

Make sure the script can find the batfile

If Not FileExists("C:\Program Files (x86)\Silkroad\AgBot\agBot.bat") Then
    MsgBox(0, "ERROR", "Cannot find C:\Program Files (x86)\Silkroad\AgBot\agBot.bat")
Else
    Run("C:\Program Files (x86)\Silkroad\AgBot\agBot.bat", "C:\Program Files (x86)\Silkroad\AgBot")
EndIf

Edited by Varian
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...