How to Change Permission of Files in Command Prompt
Navigate to the directory in which you want to apply the new permissions.
First Take ownership of files using the following command
takeown /f * /R
/f * --- Implies all files in the current path
/R ---- Recursive action
Then change the Permission using the following command
cacls * /T /e /p ramit:f
/T is for recussive
First Take ownership of files using the following command
takeown /f * /R
/f * --- Implies all files in the current path
/R ---- Recursive action
Then change the Permission using the following command
cacls * /T /e /p ramit:f
/T is for recussive
Comments
Post a Comment