Click here to Skip to main content
15,890,043 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Cannot set Environmental variable for application folder ->Default Location.
For location: \Documents and Settings\{username}: environmental variable for XP is ‘%HOMEPATH%’
If Default Location is set to ‘%HOMEPATH%’ :application is debugged but on install generates an error:
ERROR: Cannot access network location “%HOMEPATH%.

How can I make it to install for current user: i.e c:\\Documents and Settings\{username}

Thanks,
Abhi
Posted
Updated 30-Sep-10 2:51am
v2
Comments
abhishek.singh.valeteck 30-Sep-10 8:33am    
to be simple i want to set default location of application folder to \Documents and Settings\{username}

1 solution

Have you tried:

Dim InstallPath As String = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments)
 
Share this answer
 
Comments
abhishek.singh.valeteck 1-Oct-10 9:00am    
this has to be done in .INI file??
where exactly to use this, i was changing "default location" property of 'application folder' in the editor->file system

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900