Lesson learnt - Win8 (OpenInsight 32-bit)
At 21 NOV 2012 01:26:21AM Barry Stevens wrote:
My first Win8 bomb out.
I have been creating a temp file in %HOMEPATH%:"\My Documents"
Ran app in Win8 and bombed with cant create message. Checked permissions, checked notepad save. all ok.
When into to c:\users\barry and clicked 'My Documents'..past saves were there, then looked at the top section of explorer and it showed c:\users\barry\Documents'!!!!!!
Changed to %TEMP% and all ok of cause.
Anyone know the environment variable for 'my documents'
At 21 NOV 2012 10:42AM Jared Bratu wrote:
As you've discovered the folder name changes between Windows XP and Windows 7/8. The path isn't available through an environment variable but you can access it through a special folder reference as indicated here
If you need an example of how to access Environment.GetFolderPath(Environment.SpecialFolder.Mydocuments) using VBScript and the Windows Scripting Host object from within OpenInsight please let me know.
At 21 NOV 2012 02:41PM Barry Stevens wrote:
Thanks very much, but I might stick with the easy path I have taken. <s>