TIP: Click on subject to list as thread! ANSI
echo: os2bbs
to: Sean Dennis
from: Peter Knapper
date: 2006-01-18 21:15:32
subject: Re: A little batch file magic

Hi Sean,

PK>  for %%f in (*.mo? *.tu? *.we? *.th? *.fr? *.sa? *.su?) copy %%f 
PK> d:\backup

 SD> Unfortunately, that didn't work.  

Ooops, try adding the word DO before "copy".........;-)

EG:

[E:\Z]for %f in (sq?.msg) do copy %f \y

[E:\Z]copy sq1.msg \y
        1 file(s) copied.

[E:\Z]copy sq2.msg \y
        1 file(s) copied.

[E:\Z]copy sq3.msg \y
        1 file(s) copied.


Cheers...........pk.


--- Maximus/2 3.01
* Origin: Another Good Point About OS/2 (3:772/1.10)
SEEN-BY: 633/267 270
@PATH: 772/1 140/1 106/2000 633/267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.