Is it possible to create a number of folders from txt file?
I continually have a bunch of folders I need to duplicate to another location but without the folder contents - just the folder names.
Another twist is sometimes I need to rename all the folder names by replacing all the spaces to underscores
The way I do it now is copy all the folder names to the clipboard and create a txt file
Manually add a comma (,) to the end of each line
Copy to clipboard from the txt file about 5 or 6 names and then use create new folder and paste into that box
Hopefully someone here knows of an easier and quicker way to make all the folders at once from the txt file or clipboard
For converting spaces to underlines, use a button which runs this command:
@NODESELECT
Rename PATTERN=" " TO="_" FINDREP
(The paste file list button may also be of use and is a more literal answer to your question of how create things from a list in the clipboard. I doubt you'll want to use the clipboard when you can just select the folders you want duplicated, though. You'd also have to modify it to create directories instead of files.)
@echo off
for /f "tokens=*" %%a in ('type "D:\test folder\make folder from this textfile.txt"') do (
md "%%a"
)
You need to create a folder in the Path D e.g. which is called "test folder" and a textfile within this folder with the name of each folder (one folder name per line)