Call Shell and Working directory

  • Thread starter Thread starter Lobb[cz]
  • Start date Start date
L

Lobb[cz]

Hi. I have a problem with running application from windows form
application (VB.NET). I'm using

Call Shell(path, AppWinStyle.NormalFocus, False)

but I need to define working directory 2 (in WinXP shortcuts it's
"Start in:" textbox). Any idea how to do that?

Thx :)
 
Lobb[cz],

The Shell command has a /dir switch for specifying the working directory.

You can also use the Process class with its StartInfo property to launch an
exe and specify a working directory.

Kerry Moorman
 
Ty, Kerry


Kerry Moorman napsal:
Lobb[cz],

The Shell command has a /dir switch for specifying the working directory.

You can also use the Process class with its StartInfo property to launch an
exe and specify a working directory.

Kerry Moorman


Lobb said:
Hi. I have a problem with running application from windows form
application (VB.NET). I'm using

Call Shell(path, AppWinStyle.NormalFocus, False)

but I need to define working directory 2 (in WinXP shortcuts it's
"Start in:" textbox). Any idea how to do that?

Thx :)
 
Back
Top