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

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>

View this thread on the Works forum...

  • third_party_content/community/commentary/forums_works/971a807e53088e6e609cfa4c6.txt
  • Last modified: 2023/12/30 11:57
  • by 127.0.0.1