Jump to content

Run and command line help


Recommended Posts

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, "", "")
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...