HOW TO CHANGE PERMISSIONS from command line in windows


In cmd write :

cacls D:\*.* /e /p Everyone:f

/e is to pre­serve old permissions;
/p is to add new permissions;
:f mean Full Con­trol [ R Read, W Write, C Change (write), F Full control ]

SOURCE