Modifying the Windows Path

hog

Senior Contributor
Joined
Mar 17, 2003
Messages
984
Location
UK
I want to include a button in my app to fire up a corporate application.

The users desktop has a shortcut to this corp app plus a start in path.

This start in path is not included in the users Path when the PC boots, therefore is there a way from within a running VB.NET app to tag an enty on the Path?:confused:
 
Since your app knows about it's path (what directory it started in), can you not use that instead whenever you launch other EXEs or whatever it is you have to run? The only reason I can think you'd need your folder in the path is so that you can launch something by using the filename alone (minus path info). But if your program is launching it, you can use the full path...

-Nerseus
 
No you don't follow, let me explain....

My app runs in C:\myapp for example.

The corp app exe file is located on \\networkserver\exefolder

The corp app dll files are in \\networkserver\dllfolder

All users shortcuts have StartIn set to \\networkserver\dllfolder
and Target set to \\networkserver\exefolder

\\networkserver\dllfolder does not appear in the users PATH.

Therefore I wanted to include/add it to the PATH variable.

As a work around I have simply changed to the \\networkserver\dllfolder within my running app, started the corp app then return to c:\mypp.

Do you follow now? :)
 
Back
Top