If I use Shell(myapp.exe) how is it different than double clicking on the myapp.exe ?
see the thing is that myapp.exe is written in other language(autoitscript) & it supposed to read contents of 1 .*txt file, but it fails to open that *.txt file if I use Shell(myapp.exe) in vb to start myapp.exe.
Now if I double click on the myapp.exe then it has no problems with reading file contents.
This is how I open myapp.exe & it gives no error, it does start the myapp.exe & then myapp.exe errors if i use this code to launch it.
Code:
Dim _process = My.Computer.FileSystem.CurrentDirectory & "\myapp.exe"
Dim objProcess As System.Diagnostics.Process
Try
objProcess = New System.Diagnostics.Process()
objProcess.StartInfo.FileName = _process
objProcess.StartInfo.WindowStyle = ProcessWindowStyle.Normal
objProcess.Start()
'Wait until the process passes back an exit code
objProcess.WaitForExit()
'Free resources associated with this process
objProcess.Close()
Catch
MessageBox.Show("Could not start process " & _process, "Error")
End Try
Where exactly is the TXT file? Is it in the same folder as myapp.exe? Where exactly is myapp.exe? Is it in the same folder as the VB app you're using to start it?
so basically [I]WindowsApplication1\WindowsApplication1\bin\Debug\WindowsApplication1.exe[/I] should launch \config\_deadlinkscheck.exe & \config\_deadlinkscheck.exe should read first line of text from _deadlinks_temp
now this all works fine, if I double click the _deadlinkscheck.exe , but if I use VB to launch _deadlinkscheck.exe then i get error