Jump to content

run(wtf, help)


Recommended Posts

Ok, why does it keep saying "unable to execute external program" when I do START>RUN>

"path\compiledscript.exe /testexecutable.exe /3"?? The intention is to be able to drop the script into the folder where another exe resides that I'd like to launch with a certain process priority.

Any assistance much appreciated! :P

#NoTrayIcon
$pri = "4"
If $CmdLine[0] > 0 Then
    $pro = $CmdLine[1]
Else
    MsgBox(48, "Try passing a parameter next time...", "High.exe /process to launch /priority")
    Exit
EndIf
If $CmdLine[2] <> "" Then
    $pri = $CmdLine[2]
EndIf
Run( $pro, @ScriptDir)
ProcessSetPriority($pro, $pri)
Exit

This signature is computer generated, nothing can go wron#nothing can go wron#nothing can go wron#nothing can go wron#nothing can go wron#nothing can go wron#nothing can go wron#nothing can go wron#nothing can go wron#nothing can go wron#nothing can go wron#.......

Link to comment
Share on other sites

try without the /...

script.exe testexecutable.exe 3

Thanks, I'm a dork.

This signature is computer generated, nothing can go wron#nothing can go wron#nothing can go wron#nothing can go wron#nothing can go wron#nothing can go wron#nothing can go wron#nothing can go wron#nothing can go wron#nothing can go wron#nothing can go wron#.......

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...