I am currently trying to call a program from VB.Net that uses some command line switches. The following is the code I am using. The problems is that I get the error: "No application is associated with the specified file for this operation."
CODE:
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
Try
Dim wsh
wsh = CreateObject("WScript.Shell")
wsh.Run(Directory.GetCurrentDirectory + "\GetSigw.exe /3 " + Directory.GetCurrentDirectory + "\SigAVA.bmp", 0, 1)
Catch ex As Exception
MessageBox.Show(ex.Message)
End Try
End Sub
Any help would much appreciated.
Thanks
Larry