Jump to content

Is it possible to create a read only file (or change it to read only) with isp?


Jef!

Recommended Posts

With many computers to monitor, its sometimes hard to keep track and make sure IT installed everything without forgetting anything. I made a lisp routine to verify if (amongst other) our standard.stb is available. If not, it grabs it the first time Cad start plugged to our network and copy it locally. Very practical for laptops. Few days ago one draftsman, without knowing how, managed to corrupt and/or modify it.

 

Even if the source file is read only, copying it don't make the copy read only. I made many researches without finding anything about it: Is is possible to create it read only, or is it possible to make the copy read only once copied? (via lisp or vlisp). If so, how?

 

Thanks,

Jef!

Link to comment
Share on other sites

Or oldschool...?

 

(command "shell" "attrib +R \"C:\\ACAD\\SUBDIRECTORY\\FILE.txt\"")
(command "shell" "attrib +R \"%APPDATA%\\Autodesk\\AutoCAD 2013 - English\\R19.0\\enu\\support\\acad.CUIX\"")

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...