Jump to content
Sign in to follow this  
Lam0r

Help with .bat

Recommended Posts

Lam0r

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

Share this post


Link to post
Share on other sites
Varian

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

Share this post


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
Sign in to follow this  

×