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,038 |
Nodes: | 15 (0 / 15) |
Uptime: | 95:32:34 |
Calls: | 500,233 |
Calls today: | 2 |
Files: | 95,197 |
D/L today: |
334 files (60,044K bytes) |
Messages: | 466,628 |