Sign in to follow this  
Followers 0
anystupidassname

run(wtf, help)

2 posts in this topic

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

Share this post


Link to post
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#.......

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  
Followers 0