Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Mydocument environment variable 1

Status
Not open for further replies.

shantanu125

Programmer
May 8, 2002
30
US
Hi Gurus,

I 've an application which gets files from my documents folder. The location is stored in a Xml file as %USERPROFILE%\My Documents\<folder-name> But problem comes when I redirect that folder.
Is there any environment variable to get redirected My Documents folder location(instead of using %USERPROFILE%\)?

Thanks,
Shantanu
 
Code:
Environment.GetFolderPath(Environment.SpecialFolder.Personal)
 
Yaa I knew it and I am using it. But my problem is that the USERPROFILE%\My Documents\<folder-name> is hardcoded in xml. I want an environmentvariable in place of %USERPROFILE%.

Thanks
shantanu
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top