SD: for in (*.mo? *.tu? *.we? *.th? *.fr? *.sa? *.su?) copy * d:\backup
SD: Is that right? I really don't think it is (something's nagging me
SD: that it's missing)...
I'm trying to remember how to move certain files in a
directory to another directory in a batch file. I
want to copy the packets I get in in BT's inbound to a
backup directory (that's saved my bacon before), but
not all of the other files I get (TICs, ZIPs, et al).
I was thinking that this might do it:
for in (*.mo? *.tu? *.we? *.th? *.fr? *.sa? *.su?) copy * d:\backup
From the command line that should be -
for %%f in (*.mo? *.tu? *.we? *.th? *.fr? *.sa? *.su?) copy %%f
d:\backup
for %%f in (*.mo? *.tu? *.we? *.th? *.fr? *.sa? *.su?) copy %%f
d:\backup
Unfortunately, that didn't work.
Ooops, try adding the word DO before "copy".........;-)
Sysop: | digital man |
---|---|
Location: | Riverside County, California |
Users: | 1,024 |
Nodes: | 17 (0 / 17) |
Uptime: | 21:02:04 |
Calls: | 502,455 |
Calls today: | 23 |
Files: | 104,744 |
D/L today: |
3,027 files (2,132M bytes) |
Messages: | 437,447 |
Posted today: | 4 |