| View previous topic :: View next topic |
| Author |
Message |
veru Power User

Joined: 09 Jul 2004 Posts: 80
|
Posted: Thu Oct 21, 2004 7:05 am Post subject: Home Directory |
|
|
Hi,
how do I retrieve the Home directory of the current user?
thanks,
verena |
|
| Back to top |
|
 |
SergeM Super User

Joined: 09 Sep 2003 Posts: 3211 Location: Troyes France
|
|
| Back to top |
|
 |
SergeM Super User

Joined: 09 Sep 2003 Posts: 3211 Location: Troyes France
|
|
| Back to top |
|
 |
DannyB Moderator


Joined: 02 Apr 2003 Posts: 3991 Location: Lawrence, Kansas, USA
|
|
| Back to top |
|
 |
Cybb20 Super User


Joined: 02 Mar 2004 Posts: 1569 Location: Frankfurt, Germany
|
Posted: Thu Oct 21, 2004 1:20 pm Post subject: |
|
|
| DannyB wrote: |
This works on Linux. It will always return the pathname "/home/danny". A similar technique would probably work on Windows, assuming that Windows has an environment variable sthat points to your home directory. |
Yes it has:
| Code: |
msgbox Environ("USERPROFILE")
|
Christian _________________ - Knowledge is Power - |
|
| Back to top |
|
 |
veru Power User

Joined: 09 Jul 2004 Posts: 80
|
Posted: Thu Oct 21, 2004 10:50 pm Post subject: |
|
|
Great! Thank you all for your answers.
| Code: | | Environ("USERPROFILE") |
was exactly what I was looking for.
thanks,
Verena |
|
| Back to top |
|
 |
|