Jumbodogs Posted November 23, 2007 Posted November 23, 2007 When I try running a program with Run ( "c:\Program Files\radio Shark\radioshark.exe") I get Application has generated an exception that could not be handled. I tried running other programs with that code and they work fine.
Jumbodogs Posted November 23, 2007 Author Posted November 23, 2007 Is there anything else I can try to instead of the Run command?
Valuater Posted November 23, 2007 Posted November 23, 2007 Maybe.. there is more to the program than you are giving it $Program = "c:\Program Files\radio Shark\radioshark.exe" $Argument = "" ; check properties for aguments $Directory = @WorkingDir If FileExists($Program) Then $Program = FileGetShortName($Program) Run( $Program & " " & $Argument, $Directory, @SW_HIDE) Else MsgBox(0x0,"Sorry!", "The file does not exist " & @crlf & $Program & " ") EndIf 8)
Jumbodogs Posted November 23, 2007 Author Posted November 23, 2007 Thanks for the reply. I tried what you posted but I get the same error. Application has generated an exception that could not be handled. Process id=0xfa4 (4004), Thread id=0x1ec (492).
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now