3 reputation
2
bio website
location
age
visits member for 2 years, 8 months
seen Jul 13 '12 at 12:12

Mar
13
awarded  Popular Question
Feb
20
comment Batch file: Change names on files with certain extensions in multiple directories based on the directory name and copy into one directory
Running the new edit gives just the FileName.newFileType as a name, not including the directory name, and since all files has the same name they are overwriting each other...
Feb
20
comment Batch file: Change names on files with certain extensions in multiple directories based on the directory name and copy into one directory
How do I change your batch file to not include the original file name, just the directory name without filetype, since all files have the same name? I would also like to remove the last part of the directory name. That is: directory "DirectoryName.d" and file name "FileName.fileType" becomes "DirectoryName.d_FileName.newFileType". What I want is "DirectoryName.newFileType".
Feb
20
awarded  Scholar
Feb
20
accepted Batch file: Change names on files with certain extensions in multiple directories based on the directory name and copy into one directory
Feb
17
comment Batch file: Change names on files with certain extensions in multiple directories based on the directory name and copy into one directory
It works, but the names of respective directory from where the files were copied are important for me in the following analysis of the files. Does someone know how to add them to the files? I was thinking of saving them all in a text or csv file and adding them afterwards, but guess there must be an easier solution?
Feb
16
asked Batch file: Change names on files with certain extensions in multiple directories based on the directory name and copy into one directory