Jump to content
Sign in to follow this  
BlueOrange

Run and command line help

Recommended Posts

BlueOrange

Ok, i currently have the snippet below.

I'm meant to be running a .jar through the command line (if theres a better way to do it with autoit then please let me know ;) )

Cd's to the directory

Then runs the file.

But unfortunately does nothing, so a little help would be appreciated :evil:

$directory = "C:\Users\Ben\Desktop\KBOT"
$versionnumber = "KbotObf-B377.jar"
Run(@ComSpec & " /c " & 'cd' & $directory, "", "")
Run(@ComSpec & " /c " & 'java -jar' & $versionnumber, "", "")

Share this post


Link to post
Share on other sites
BlueOrange

Not to worry, I've solved my problem with a bit more searching.

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.