I'm working on a CMD line batch file in a Win7 environment that will create directories based upon the filenames listed in a directory.
I am using this code, but the output created is partial and incomplete with only
setlocal enabledelayedexpansion for /r %%i in (*.wav) do ( set filename1=%%i set folder1=!filename1:~4,10! mkdir !folder1! ) pause I have this script saved as a CMD file in text format in the source directory, on a local harddrive, though it is in a subdirectory. The directory output is partial and broken, with garbled output and the numbers of directories created does not match the number of files, and the created directories seem to nest. I've researched this and can't seem to find a definitive answer.