PAL Environment variable?
Hi,
I'm trying to make this portable app, it's already 99% portable except: it writes config to a special folder.It's like:
D:\PHOTO\MassiGra\user\joshatt\MassiGra.cfg
You see? "joshatt" is my WINXP username. Guess I should use "USERPROFILE", but how could I filter out the "C:\Documents and Settings\" part? And I also have to consider if this portable app is to be used in a win7 or vista computer, it could be filtering out "C:\Users\",instead.
Any idea?
- Read more about PAL Environment variable?
- 9 comments
- Log in or register to post comments