davearia Posted July 3, 2008 Posted July 3, 2008 Hi, I am trying to programmatically start up an exe. Here is a basic example of starting up an exe in my application folder which works fine: Process.Start("my.exe", My.Application.Info.DirectoryPath) Here is an attempt to specify the location: Process.Start("my.exe", "C:\Documents and Settings\me\Desktop\new\new\Bin") Which throws an exception, as it cannot find the file. I tried this: If File.Exists(appPath & "my.exe") Then Dim processInfo As New ProcessStartInfo processInfo.FileName = "my.exe" processInfo.Arguments= "C:\Documents and Settings\me\Desktop\new\new\update\Bin" Process.Start(processInfo) End If But again I get Quote The system cannot find the file specified Can anyone help? Thanks, Dave. Quote
davearia Posted July 3, 2008 Author Posted July 3, 2008 Sorry just realised I wasted my time posting this. The file name just needed the path adding to it. Apologies! Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.