Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...