![]() The EOL and DELIMS options are used to make sure that the full name of every file is preserved. The results of the piped command can be iterated with FOR /F. ![]() But you don't want to rename files that aready begin with the parent folder name, so that can be piped to FINDSTR to exclude the already renamed files. The DIR /B /A-D "folderPath" command can list all files within a folder. The FOR /R command can iterate the folder paths of all folders within a root tree. "fileName.ext" -> "parentFolderName_fileName.ext" That is not a reasonable expectation unless there are unusual circumstances.īut it is possible to insert the name of the parent folder in front of every file - something like
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |