How can I loop through all hidden folders, in windows-cmd?
This code
FOR /D %i IN (*) DO @echo %i
handles only non-hidden folders.
How can I loop through all hidden folders, in windows-cmd?
This code
FOR /D %i IN (*) DO @echo %i
handles only non-hidden folders.
To loop through all folder in a directory (including hidden folders) in cmd you can use:
You can exclude system folder using:
And if you want to get subfolders (you might not want to this in a folder with many subfolders) :