Message 1 of 8
Folder, file and permissions.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello how are you.
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.
(if (null (vl-file-directory-p "C:\Program Files (x86)\myfolder"))
(vl-mkdir "C:\Program Files (x86)\myfolder"))
I want to create a folder in program files and then save a file to it
C:\Program Files (x86)\myfolder\myfile.txt
myfile.txt can have any other extension you need.
Try the @ronjonp function that I found in
https://www.cadtutor.net/forum/topic/64643-get-admin-access-with-autolisp/
But I can't make it work.
I don't understand why it doesn't work?
I use windows 10
Autocad 2022
Thanks for your help.
AutoCAD 2026
Visual Studio Code 1.99.3
AutoCAD AutoLISP Extension 1.6.3
Windows 10 (64 bits)