Need to NTFS permissions for a file home: icacls DOCS - T/grant the current folder name _ a total (OI) (CI) (F)/T;
"The current folder name _ a total" for the security group name, the security group in AD has been created, by the project manager need to empower the DOCS - "T" folder not late increase, need to each project operation time, not need to manually modify the current folder to the name of the batch, a great god, please help to look at this position use what parameters can automatically obtain the folder name and use this command to, thank you
Folder path for (cases) : E: \ 2021\0001 \ DOCS - T,
Batch style: how the batch of 0001 automatically read and use,
@ echo off
Echo. * * * * * in the corresponding folder double-click on the execution of * * * * *
Echo. * * * * * need to create the folder * * * * *
Md DOCS - T
Pause
Echo. * * * * * change need to add the permissions set * * * * *
Icacls DOCS - T/grant 0001 _ a total ": (OI) (CI) (F)/T
Pause
Icacls DOCS - 0001 _ T/grant project team "(OI) (CI) (RX, W, settlement)/T
pause