Is there any way using API to determine the current directory of an
application software that is running or active?
Thank you
Lofty - 26 Sep 2003 12:49 GMT
I guess it would be a bit obvious to suggest the App.Path property? ;-)

Signature
Neil Lofts
URL: http://www.brainache.demon.co.uk
Check out my music at http://www.mp3.com/Lofty
> Is there any way using API to determine the current directory of an
> application software that is running or active?
>
> Thank you
Randy Birch - 26 Sep 2003 15:48 GMT
Other than your own app using app.path? No.

Signature
Randy Birch
MVP Visual Basic
http://www.mvps.org/vbnet/
Please respond only to the newsgroups so all can benefit.
: Is there any way using API to determine the current directory of an
: application software that is running or active?
:
: Thank you
Veign - 26 Sep 2003 17:32 GMT
App.Path property

Signature
Veign
Chris Hanscom
http://www.veign.com
Application Design Section
http://www.veign.com/information/application/info_app.html
------
> Is there any way using API to determine the current directory of an
> application software that is running or active?
>
> Thank you
Karl E. Peterson - 26 Sep 2003 22:55 GMT
> Is there any way using API to determine the current directory of an
> application software that is running or active?
If it's not yours? No.

Signature
[Microsoft Basic: 1976-2001, RIP]
Klaus H. Probst - 27 Sep 2003 09:31 GMT
App.Path = The path from where your executable was loaded.
CurDir$ = the current directory for the process.

Signature
____________________
Klaus H. Probst, MVP
http://www.vbbox.com/
Please post/reply to the newsgroup(s)
> Is there any way using API to determine the current directory of an
> application software that is running or active?
>
> Thank you
Martin Wildam - 29 Sep 2003 21:57 GMT
If you prefer Windows-API:
Declare Function GetCurrentDirectory Lib "kernel32" Alias
"GetCurrentDirectory" (ByVal nBufferLength As Long, ByVal lpBuffer As
String) As Long
> Is there any way using API to determine the current directory of an
> application software that is running or active?
>
> Thank you
Mohsen - 29 Sep 2003 22:30 GMT
>-----Original Message-----
>Is there any way using API to determine the current directory of an
[quoted text clipped - 3 lines]
>
>you use Function Api That Name is GetCurrentDirectory
it is use Kernel32.dll