Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change File and Folder permissions on Windows 7 using Command Line (CLI)? [closed]

I am trying to use chmod utility on windows command line but it does not work. I am looking for the command to change the files and folder permission on windows.

like image 761
Mahavir Munot Avatar asked Apr 18 '12 13:04

Mahavir Munot


1 Answers

The following commands will help to take the ownership of the directory and files:
D:\>takeown /f D:\path\to\directory /r /d y
D:\>icacls D:\path\to\directory /grant administrators:F /t

like image 70
Mahavir Munot Avatar answered Oct 06 '22 00:10

Mahavir Munot