Passing Directory Name with spaces in it
Posted: 25 Feb 2011 19:52
Newbie problem perhaps but I cannot find a solution even after searching the board.
An unpacker program created a directory that was supposed to be a bunch of individual files. Instead it created a couple of thousand directories names similar to the file names with spaces and sometimes dashes in them. Each directory contains a single file similar to the the directory name:
Toplevel
Name of first directory
\Name of first directory file.pdf
Name - of second directory
\Name - of second directory file.pdf
...
etc.
I would like to create a batch file to recursively send the directory name to a second batch file that moves the file to Toplevel, then deletes the directory names.
Any assistance would be greatly appreciated.
An unpacker program created a directory that was supposed to be a bunch of individual files. Instead it created a couple of thousand directories names similar to the file names with spaces and sometimes dashes in them. Each directory contains a single file similar to the the directory name:
Toplevel
Name of first directory
\Name of first directory file.pdf
Name - of second directory
\Name - of second directory file.pdf
...
etc.
I would like to create a batch file to recursively send the directory name to a second batch file that moves the file to Toplevel, then deletes the directory names.
Any assistance would be greatly appreciated.