• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 145
  • Last Modified:

Starting a process

If I add a process to my form, 'and' specify the working directory, it works.
If I try from code (process.start("process.exe") - it fails.  I belive it's only due to the directory - so how do I specify that in code?
0
sirbounty
Asked:
sirbounty
1 Solution
 
Mike TomlinsonMiddle School Assistant TeacherCommented:
You can specify a working directory like so...

        Dim p As New Process
        p.StartInfo.FileName = "c:\path\to\someExe"
        p.StartInfo.WorkingDirectory = "c:\some\working\Folder"
        p.Start()
0

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now