Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Hi,
I have a csv file that looks like this:
"Path","Hash","othercolumns"
...I'd like to write a batch file to execute the following copy command with each line specified in the CSV:
copy Path Target\Hash.Extension
Path is the first column of the CSV that contains the full file path including extension. Hash is the second column in CSV and should be the new filename.
Is that possible with a batch file or should I better to with a small self made program?
Regards,Emsi

for /f "tokens=1,2* delims=," %a in (csv) do @echo copy %a "%~fa\%~b%~xa"type in command prompt, remove echo when the code suit you.

![]() |
compare files
|
Quser using .bat
|

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |