<?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: Folder, file and permissions. in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/folder-file-and-permissions/m-p/10228103#M61644</link>
    <description>&lt;P&gt;Since you are using AutoLisp functions, try substituting double backslashes "\\" for every single backslash "\"&lt;/P&gt;
&lt;P&gt;That's the way this language works.&lt;/P&gt;
&lt;P&gt;OR&lt;/P&gt;
&lt;P&gt;You could substitute a single foreslash "/" for every single backslash "\"&lt;/P&gt;</description>
    <pubDate>Sat, 10 Apr 2021 22:33:40 GMT</pubDate>
    <dc:creator>john.uhden</dc:creator>
    <dc:date>2021-04-10T22:33:40Z</dc:date>
    <item>
      <title>Folder, file and permissions.</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/folder-file-and-permissions/m-p/10228040#M61643</link>
      <description>&lt;P&gt;Hello how are you.&lt;BR /&gt;I wanted to ask you how I can create a folder in the program files directory, but without administrator permissions I can't do it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;(if (null (vl-file-directory-p "C:\Program Files (x86)\myfolder")) 
  (vl-mkdir "C:\Program Files (x86)\myfolder"))&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;I want to create a folder in program files and then save a file to it&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;C:\Program Files (x86)\myfolder\myfile.txt&lt;/P&gt;&lt;P&gt;myfile.txt can have any other extension you need.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try the &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/593837"&gt;@ronjonp&lt;/a&gt;&amp;nbsp;function that I found in&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.cadtutor.net/forum/topic/64643-get-admin-access-with-autolisp/" target="_blank"&gt;https://www.cadtutor.net/forum/topic/64643-get-admin-access-with-autolisp/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I can't make it work.&lt;BR /&gt;I don't understand why it doesn't work?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I use windows 10&lt;BR /&gt;Autocad 2022&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;</description>
      <pubDate>Sat, 10 Apr 2021 21:22:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/folder-file-and-permissions/m-p/10228040#M61643</guid>
      <dc:creator>carlos_m_gil_p</dc:creator>
      <dc:date>2021-04-10T21:22:41Z</dc:date>
    </item>
    <item>
      <title>Re: Folder, file and permissions.</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/folder-file-and-permissions/m-p/10228103#M61644</link>
      <description>&lt;P&gt;Since you are using AutoLisp functions, try substituting double backslashes "\\" for every single backslash "\"&lt;/P&gt;
&lt;P&gt;That's the way this language works.&lt;/P&gt;
&lt;P&gt;OR&lt;/P&gt;
&lt;P&gt;You could substitute a single foreslash "/" for every single backslash "\"&lt;/P&gt;</description>
      <pubDate>Sat, 10 Apr 2021 22:33:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/folder-file-and-permissions/m-p/10228103#M61644</guid>
      <dc:creator>john.uhden</dc:creator>
      <dc:date>2021-04-10T22:33:40Z</dc:date>
    </item>
    <item>
      <title>Re: Folder, file and permissions.</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/folder-file-and-permissions/m-p/10228431#M61645</link>
      <description>&lt;P&gt;A dumb answer create it some where else were you dont have problems creating, just add the location to support and trusted paths.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Something went wrong posted by seahaven.&lt;/P&gt;</description>
      <pubDate>Sun, 11 Apr 2021 05:05:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/folder-file-and-permissions/m-p/10228431#M61645</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-04-11T05:05:05Z</dc:date>
    </item>
    <item>
      <title>Re: Folder, file and permissions.</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/folder-file-and-permissions/m-p/10230518#M61646</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/2573929"&gt;@carlos_m_gil_p&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hello how are you.&lt;BR /&gt;I wanted to ask you how I can create a folder in the program files directory, but without administrator permissions I can't do it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;(if (null (vl-file-directory-p "C:\Program Files (x86)\myfolder")) 
  (vl-mkdir "C:\Program Files (x86)\myfolder"))&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;I want to create a folder in program files and then save a file to it&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;C:\Program Files (x86)\&lt;/STRONG&gt;myfolder\myfile.txt&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Curious is to why on that folder?&amp;nbsp; while you can use the appdata folder, this allows windows&amp;nbsp;programs to store multiple sets of settings&amp;nbsp; as per users account.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;(if (null
      (vl-file-directory-p
	(setq sourceFolder (strcat (getenv "APPDATA") "\\Myfolder"))
      )
    )
   (vl-mkdir sourceFolder))&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Apr 2021 07:51:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/folder-file-and-permissions/m-p/10230518#M61646</guid>
      <dc:creator>pbejse</dc:creator>
      <dc:date>2021-04-12T07:51:01Z</dc:date>
    </item>
    <item>
      <title>Re: Folder, file and permissions.</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/folder-file-and-permissions/m-p/10232535#M61647</link>
      <description>&lt;P&gt;Hi guys, how are you, thanks for the answers.&lt;BR /&gt;At one time I had a fas that created a file in a folder without permissions and I have to do the permissions manually.&lt;BR /&gt;But he made me curious about how to do the permits.&lt;BR /&gt;It is a subject to learn and apply in the future.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Apr 2021 20:43:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/folder-file-and-permissions/m-p/10232535#M61647</guid>
      <dc:creator>carlos_m_gil_p</dc:creator>
      <dc:date>2021-04-12T20:43:52Z</dc:date>
    </item>
    <item>
      <title>Re: Folder, file and permissions.</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/folder-file-and-permissions/m-p/10232732#M61648</link>
      <description>&lt;P&gt;I think that permissions code only worked in older versions of Windows. Like&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/564264"&gt;@pbejse&lt;/a&gt;&amp;nbsp;mentioned, put your data somewhere else that isn't as locked down. It will serve you well not having to deal messing with permissions.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Apr 2021 22:34:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/folder-file-and-permissions/m-p/10232732#M61648</guid>
      <dc:creator>ronjonp</dc:creator>
      <dc:date>2021-04-12T22:34:51Z</dc:date>
    </item>
    <item>
      <title>Re: Folder, file and permissions.</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/folder-file-and-permissions/m-p/10244646#M61649</link>
      <description>&lt;P&gt;Hi guys, thanks for the replies.&lt;BR /&gt;I will continue investigating to see what other option I get.&lt;BR /&gt;Greetings.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Apr 2021 15:13:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/folder-file-and-permissions/m-p/10244646#M61649</guid>
      <dc:creator>carlos_m_gil_p</dc:creator>
      <dc:date>2021-04-16T15:13:22Z</dc:date>
    </item>
    <item>
      <title>Re: Folder, file and permissions.</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/folder-file-and-permissions/m-p/10244772#M61650</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/2573929"&gt;@carlos_m_gil_p&lt;/a&gt;&amp;nbsp;wrote:
&lt;P&gt;I will continue investigating to see what other option I get.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let us know how it goes&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/2573929"&gt;@carlos_m_gil_p&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Apr 2021 15:50:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/folder-file-and-permissions/m-p/10244772#M61650</guid>
      <dc:creator>pbejse</dc:creator>
      <dc:date>2021-04-16T15:50:06Z</dc:date>
    </item>
  </channel>
</rss>

