Jump to content

Recommended Posts

Posted

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.

Posted

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

Posted

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

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...