making a batchfile

February 6, 2010 at 02:05:54
Specs: Windows XP
Hi, I have file inside which i have around 100 file names with extension .key and also the other extensions too. But i want to copy only .key file names into another file.
And the next tack is to copy those files into another folder
I am doing this manually right now and its eatimg up my time.As i am new to this batch commands, please suggest.

See More: making a batchfile

Report •

February 6, 2010 at 04:05:18
not tested
@echo off & setLocal enableDELAYedeXpansion

find /i ".key" < filelist > keylist

for /f "tokens=* delims= " %%a in (keylist) do (
copy %%a d:\mystuff

Helping others achieve escape felicity


Report •
Related Solutions

Ask Question