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,163 |
| Nodes: | 17 (0 / 17) |
| Uptime: | 459:44:30 |
| Calls: | 509,440 |
| Calls today: | 3 |
| Files: | 262,602 |
| U/L today: |
1 files (1,436K bytes) |
| D/L today: |
645 files (134M bytes) |
| Messages: | 470,617 |