Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

clear read-only


1 reply to this topic

young

young
  • Members
  • 4 posts

Posted 07 July 2004 - 02:14

I use following code for clearing read-only property.

SetFileInfo (dir_arcgis+ "\\ArcToolbox\\Toolboxes\\3D Analyst Tools.tbx", FILE_ATTRIBUTE, FILE_ATTR_NORMAL, "") ;

but, this code only changes a file unit.

I want to change folder unit.

How to do it?


Taco Bell

Taco Bell

    IS6 Expert

  • Moderators
  • 1,281 posts

Posted 07 July 2004 - 03:35

Hmm, well this is hoaky, but you could just recreate the existing directory to restore the normal attributes.

Just rename it, copy the contents over, and then deleted the previous rename.
user posted image