Page 1 of 1

Windows User Profile Directories

Posted: Fri Aug 07, 2009 12:35 pm
by ConvertFromOldNGs
by Anonymous >> Wed, 16 Jun 2004 1:37:38 GMT

Hi,
Can anybody help. I am trying to relocate an ini file from the windows folder to the users profile in documents and setting. Is there a Jade method that locates this folder of some other way of identifying it. Thanks Haydn

Re: Windows User Profile Directories

Posted: Fri Aug 07, 2009 12:35 pm
by ConvertFromOldNGs
by Wanda >> Wed, 16 Jun 2004 4:56:05 GMT

The pathname is stored in the USERPROFILE environment variable. You can obtain the value using the GetEnvironmentVariable Windows API function, which is callable from JADE when defined as an external function.