![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: How do you get user's home directory Topic Summary: Created On: 19-Feb-2007 19:11 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() Answer: Maybe the home directory is mapped to a drive (root directory) for each user? There is a separate environment variable for the drive, thus the following string envstring = getenv("HOMEPATH") string drivestring = getenv("HOMEDRIVE") print drivestring envstring "" produces correct values for me. | |
![]() |
|
I would like to write a output file to a users home directory but I don't know how to get the environment variable %HOMEPATH%
When I try getenv("HOMEPATH") ---> I get: \ When I try getenv("HOME") ---> I get: C:\Program Files\Telelogic\DOORS_8.1\ Is there a way to get the user's home not DOORS home? Thanks. ------------------------- Karen Hidalgo<BR>Northrop Grumman - TASC<BR>karen.hidalgo@ngc.com |
|
![]() |
|
![]() |
|
Maybe the home directory is mapped to a drive (root directory) for each user?
There is a separate environment variable for the drive, thus the following string envstring = getenv("HOMEPATH") string drivestring = getenv("HOMEDRIVE") print drivestring envstring "" produces correct values for me. ------------------------- Pekka.Makinen@softqa.fi SoftQA Oy -http://www.softqa.fi/ |
|
![]() |
|
![]() |
|
Thank you that worked.
Do you know a way to get this path: \Documents and Settings\Username Thanks. ------------------------- Karen Hidalgo<BR>Northrop Grumman - TASC<BR>karen.hidalgo@ngc.com |
|
![]() |
|
![]() |
|
It seems to be the "USERPROFILE" environment variable (seems to be, because that is listed when I do run the "set" command from console).
------------------------- Pekka.Makinen@softqa.fi SoftQA Oy -http://www.softqa.fi/ Edited: 20-Feb-2007 at 07:26 by Pekka Mäkinen |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
How do you get user's home directory
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.