<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Get User Desktop Path in 3ds Max Programming Forum</title>
    <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/get-user-desktop-path/m-p/4175604#M21200</link>
    <description>The % issuse has been raised before, and reported to the devs. I'm still not sure why it happens because unlike &amp;lt; and &amp;gt; it is not an "HTML Entity". Those may still go wrong outside a code section - it depends on what is in between them.&lt;BR /&gt;&lt;BR /&gt;I'll re-raise the problem, but don't hold your breath...</description>
    <pubDate>Fri, 29 Oct 2010 09:13:37 GMT</pubDate>
    <dc:creator>Steve_Curley</dc:creator>
    <dc:date>2010-10-29T09:13:37Z</dc:date>
    <item>
      <title>Get User Desktop Path</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/get-user-desktop-path/m-p/4175601#M21197</link>
      <description>I need the string path to the all users desktop and wrote 2 functions which I test only under XP where works well, and need test assistance just know if those functions return the correct desktop path in other Windows versions, especially in Vista and 7. &lt;BR /&gt;&lt;BR /&gt;No need to post the actual string that the functions return (this is a private info), I wish just to confirm if they works correct and on which Windows version you tested.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thank in advance for your assistance!&lt;BR /&gt;&lt;BR /&gt;Anubis&lt;BR /&gt;&lt;PRE&gt;-- TEST #1 --// Max 9 +&lt;BR /&gt;fn getDesktopPath_FN1 = (&lt;BR /&gt;    env = dotNetClass "System.Environment"&lt;BR /&gt;    env.ExpandEnvironmentVariables(@"&amp;amp;#xAL;LUSERSPROFILE%\Desktop")&lt;BR /&gt;)&lt;BR /&gt;&lt;BR /&gt;desk1 = getDesktopPath_FN1()&lt;BR /&gt;&lt;BR /&gt;-- TEST #2 --// Max 2008 + (or AVG for older)&lt;BR /&gt;desk2 = ""&lt;BR /&gt;if HiddenDOSCommand != undefined then&lt;BR /&gt;(&lt;BR /&gt;    fn getDesktopPath_FN2 = (&lt;BR /&gt;        tmpFile = (GetDir #temp + "\\dos.txt")&lt;BR /&gt;        SysDrive = (sysInfo.windowsdir) +":\\"&lt;BR /&gt;        cmd = "echo &amp;amp;#xAL;LUSERSPROFILE%\Desktop&amp;gt;\"" + tmpFile + "\""&lt;BR /&gt;        HiddenDOSCommand cmd startpath:SysDrive&lt;BR /&gt;        f = openFile tmpFile mode:"r"&lt;BR /&gt;        desk = ReadLine f ; close f&lt;BR /&gt;        deleteFile &amp;amp;#40;GetDir #temp + "\\dos.txt"&amp;amp;#41;&lt;BR /&gt;        desk&lt;BR /&gt;    )&lt;BR /&gt;&lt;BR /&gt; desk2 = getDesktopPath_FN2()&lt;BR /&gt;)&lt;BR /&gt;else (messageBox "This script function required AVG!" title:"Woops...")&lt;BR /&gt;&lt;BR /&gt;clearListener()&lt;BR /&gt;format "FN(1) result = %\nFN(2) result = %\n" desk1 desk2&lt;BR /&gt;&lt;BR /&gt;/*&lt;BR /&gt;Expected result for public Desktop should be:&lt;BR /&gt;    XP or earlier : "C:\Documents and Settings\All Users\Desktop"&lt;BR /&gt;    Vista or later: "C:\Users\Public\Desktop"&lt;BR /&gt;*/&lt;BR /&gt;&lt;BR /&gt;-- Optional -- uncomment next 2 lines and test one-by-one:&lt;BR /&gt;--ShellLaunch desk1 ""&lt;BR /&gt;--ShellLaunch desk2 ""&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;Some characters replaced by post form... attachment not works too (right now?)&lt;BR /&gt;Download link to the script file:&lt;BR /&gt;&lt;A href="http://narod.ru/disk/26702278000/getDesktopPath.ms.html" target="_blank"&gt;http://narod.ru/disk/26702278000/getDesktopPath.ms.html&lt;/A&gt;</description>
      <pubDate>Thu, 28 Oct 2010 23:04:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/get-user-desktop-path/m-p/4175601#M21197</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-10-28T23:04:41Z</dc:date>
    </item>
    <item>
      <title>Re: Get User Desktop Path</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/get-user-desktop-path/m-p/4175602#M21198</link>
      <description>Any text within CODE tags should not be altered, but make sure the CODE tags are in place before previewing or submitting.&lt;BR /&gt;Like all non-image files, *.ms &lt;I&gt;must&lt;/I&gt; be zipped or they won't attach.</description>
      <pubDate>Thu, 28 Oct 2010 23:45:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/get-user-desktop-path/m-p/4175602#M21198</guid>
      <dc:creator>Steve_Curley</dc:creator>
      <dc:date>2010-10-28T23:45:51Z</dc:date>
    </item>
    <item>
      <title>Re: Get User Desktop Path</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/get-user-desktop-path/m-p/4175603#M21199</link>
      <description>Maybe the string "&amp;amp;#xAL;L" cause conflict with some php variable?&lt;BR /&gt;&lt;PRE&gt;--In CODE tag goes this:&lt;BR /&gt;"&amp;amp;#xAL;L"&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;Huh, its changed out of the CODE tag too &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; Its a percentage sign + "ALL".&lt;BR /&gt;The attachment was my fall, I used rar not zip before, thanks.&lt;BR /&gt;&lt;P&gt;&lt;IMG class="migr-att-link" src="http://area.autodesk.com/userdata/forum/c/changed_string.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="migr-att-link" href="http://area.autodesk.com/userdata/forum/g/getdesktoppath.zip" target="_blank"&gt;getdesktoppath.zip&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Oct 2010 02:08:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/get-user-desktop-path/m-p/4175603#M21199</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-10-29T02:08:29Z</dc:date>
    </item>
    <item>
      <title>Re: Get User Desktop Path</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/get-user-desktop-path/m-p/4175604#M21200</link>
      <description>The % issuse has been raised before, and reported to the devs. I'm still not sure why it happens because unlike &amp;lt; and &amp;gt; it is not an "HTML Entity". Those may still go wrong outside a code section - it depends on what is in between them.&lt;BR /&gt;&lt;BR /&gt;I'll re-raise the problem, but don't hold your breath...</description>
      <pubDate>Fri, 29 Oct 2010 09:13:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/get-user-desktop-path/m-p/4175604#M21200</guid>
      <dc:creator>Steve_Curley</dc:creator>
      <dc:date>2010-10-29T09:13:37Z</dc:date>
    </item>
    <item>
      <title>Re: Get User Desktop Path</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/get-user-desktop-path/m-p/4175605#M21201</link>
      <description>Hi Anubis&lt;BR /&gt;&lt;BR /&gt;This is the result of my test of your script in Windows 7 Home Premium 64bit&lt;BR /&gt;&lt;BR /&gt;&lt;PRE&gt;&lt;BR /&gt;OK&lt;BR /&gt;FN(1) result = C:\ProgramData\Desktop&lt;BR /&gt;FN(2) result = C:\ProgramData\Desktop&lt;BR /&gt;OK&lt;BR /&gt;OK&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;I hope that it can be helpful for your work &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;Ciao&lt;BR /&gt;Michele</description>
      <pubDate>Fri, 29 Oct 2010 16:41:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/get-user-desktop-path/m-p/4175605#M21201</guid>
      <dc:creator>MedalHellWay</dc:creator>
      <dc:date>2010-10-29T16:41:48Z</dc:date>
    </item>
    <item>
      <title>Re: Get User Desktop Path</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/get-user-desktop-path/m-p/4175606#M21202</link>
      <description>Many thanks Michele !</description>
      <pubDate>Fri, 29 Oct 2010 19:37:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/get-user-desktop-path/m-p/4175606#M21202</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-10-29T19:37:12Z</dc:date>
    </item>
  </channel>
</rss>

