Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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:

My website
  • *Experts*
Posted

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

"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
Posted

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? :)

My website

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...