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,049 |
Nodes: | 15 (1 / 14) |
Uptime: | 96:45:27 |
Calls: | 235,753 |
Calls today: | 3 |
Files: | 60,336 |
D/L today: |
200 files (562M bytes) |
Messages: | 20,616,130,521 |
Posted today: | 3 |