{{tag>category:"OpenInsight 32-bit" author:"Barry Stevens" author:"Jared Bratu"}} [[https://www.revelation.com/the-works|Join The Works program to have access to the most current content, and to be able to ask questions and get answers from Revelation staff and the Revelation community]] ==== 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 [url=http://stackoverflow.com/questions/3492920/is-there-a-system-defined-environment-variable-for-documents-directory]indicated here[/url] 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. [[https://www.revelation.com/revweb/oecgi4p.php/O4W_HANDOFF?DESTN=O4W_RUN_FORM&INQID=WORKS_READ&SUMMARY=1&KEY=971A807E53088E6E609CFA4C6|View this thread on the Works forum...]]