Sign in to follow this  
Followers 0
Jumbodogs

Getting application has generated exception that couldn't be handled

4 posts in this topic

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.

Share this post


Link to post
Share on other sites



Is there anything else I can try to instead of the Run command?

Share this post


Link to post
Share on other sites

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)


NEWHeader1.png

Share this post


Link to post
Share on other sites

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

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