Hi,
I would like to write a batch script to perform the following tasks,
1) The script should ask the user to input the drive information (C:\, D:\, etc)
2) Once the user inputs the drive information, it should print all the folders (not sub-folders, only the folders) in that drive to a file.
3) Now the script should find the folder permissions for the list of folders printed in the file.
4) It should print the output to a file.
I’ve the script to do the steps 3 & 4. But currently it will work only on the folder you specify. I want to have this done for all the folders in a drive.
@echo off
set target=C:\test
cacls “%target%” > c:\list.txt
for /F “tokens=*” %%* in (‘dir /b /ad “%Target%”‘) do cacls “%target%%%*”
1 Answer