Or you can use the environment variable %appdata% Keith...
________________________________ From: ozdotnet-boun...@ozdotnet.com [ozdotnet-boun...@ozdotnet.com] On Behalf Of Ian Thomas [il.tho...@iinet.net.au] Sent: Wednesday, 8 June 2011 4:01 PM To: 'ozDotNet' Subject: RE: finding a directory For Vista/Win7: C:\Users<username>\AppData Try this for your Windows CE - Console.WriteLine("GetFolderPath: {0}", Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData)) ________________________________ Ian Thomas Victoria Park, Western Australia ________________________________ From: ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet-boun...@ozdotnet.com] On Behalf Of Simon Kuldin Sent: Wednesday, June 08, 2011 1:50 PM To: ozdotnet@ozdotnet.com Subject: finding a directory Hey there ppl, I’m using an XML file to save some UserSettings in my Windows CE C# project, and when I save a file in the following path (Environment.SpecialFolder.ApplicationData) it appears to be working fine. The problem is I can’t for the life of me find the file when I refer to it in Windows Explorer. I’ve done a full PC search but I can’t find the dang file. When I use the debugger, the value for that folder is \\Application Data<https://magellan.smsmt.com/owa/UrlBlockedError.aspx> which is not useful as it does not take me directly to the file. The reason I’m trying to find the file, is so that I can edit the file and see what affect it has but I am having no luck at all at the moment. Can anyone shed some light for me? Simon Kuldin | Senior Technical Consultant | PRISM ________________________________ NOTICE - This communication is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking any action in reliance on, this communication by persons or entities other than the intended recipient is prohibited. If you are not the intended recipient of this communication please delete and destroy all copies and telephone SMS Management & Technology on 1300 842 767 immediately. Any views expressed in this Communication are those of the individual sender, except where the sender specifically states them to be the views of SMS Management & Technology. Except as required by law, SMS Management & Technology does not represent, warrant and/or guarantee that the integrity of this communication has been maintained nor that the communication is free from errors, virus, interception or interference.