Not so. The CurrentDirectory property will always return the directory from
which the current process was initiated. Therefore, it doesn't matter if
you start it with a shortcut in a different directory.
I have an app right now that access data files in its own directory. Even
if I start it from a shortcut on my desktop, the data files are correctly
accessed with the CurrentDirectory property because the process was
initiated in the directory.
--
Jim
Jimco Add-ins
Freeware add-ins and utilities for Microsoft FrontPage
http://www.jimcoaddins.com
That's not reliable since an app could be started via a shortcut with a
different working directory...
--
Michael Harris
Microsoft.MVP.Scripting
--
Quote:
> Environment.CurrentDirectory.
> --
> Jim
> Jimco Add-ins
> Freeware add-ins and utilities for Microsoft FrontPage
> http://www.jimcoaddins.com
> > Hi,
> > Please give me a pointer if you have time: How do you find
> > the path of an application in vb.net?
> > Thanks in advance,
> > lebroy