Skip to main content
Legend
December 11, 2011
Question

Looking for chmod equivalent for Windows

  • December 11, 2011
  • 1 reply
  • 1370 views

A little back story, I've managed to cobble together an After Effects psuedo plugin installer for one of my upcoming scripts. One hiccup was dealing with file permissions, to properly install the plugin. After many searches, trial & errors, and finally help from Lloyd Alvarez I managed to get a proper working piece of code for updating file permissions on Mac. there's a lot more to the code, but this is the primary permissions update snippit.

system.callSystem("chmod u+rw \"MyFilePath\"");

Now I am in the process of finding a Windows equivalent to this. I found info on CACLS ( http://technet.microsoft.com/en-us/library/bb490872.aspx ), but have been seeing tons of "it doesn't work...", "not compatible with newer os..." and such around the interwebs. Not sure if anyone here can expand upon those claims. I ideally would like to use something that is as universal as possible with Windows 7, XP, Vista. Worse case scenario, I would just provide instructions so the user can manually change the permissions, but I am trying to simplify the process by keeping the user from having to dig into files on their system. Would love to hear any thoughts. Thanks.

This topic has been closed for replies.

1 reply

Inspiring
December 14, 2011

The command to do that is attrib dating from the old dos time. Go to this microsoft page to get all the info about it : http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/attrib.mspx?mfr=true

Legend
December 15, 2011

Thanks so much chauffeurdevan I will check this out and report back.