hog Posted July 9, 2003 Posted July 9, 2003 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: Quote My website
*Experts* Nerseus Posted July 9, 2003 *Experts* Posted July 9, 2003 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 Quote "I want to stand as close to the edge as I can without going over. Out on the edge you see all the kinds of things you can't see from the center." - Kurt Vonnegut
hog Posted July 10, 2003 Author Posted July 10, 2003 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? :) Quote My website
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.