Quantcast
Channel: Take Command / TCC
Viewing all articles
Browse latest Browse all 1689

Differing results for DIR and @FINDFIRST

$
0
0
Hi all,

So, I'm writing a batch file where I'm matching file names between two folders, but I'm only matching on part of the name - essentially an ID number. I'm trying to rename one set of files to match a different set of files, allowing for differing extensions. (I'm talking image files here, and some have been converted from JPG or PNG to WEBP.)

Here's what I've got:

@echo off
set Artist=%@NAME[%_CWD]
echo Scanning Artist %Artist%:
for %v in (.jpg;.gif;*.png) do (
echo...

Read more

Viewing all articles
Browse latest Browse all 1689

Trending Articles