Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Copy Files Using Batch
Name: Kim Date: October 24, 2001 at 08:56:34 Pacific
Comment:
I need to copy a file (e.g. file.txt) to 16 files (e.g. file01.txt, file02.txt, ....file16.txt). How can I achieve that? I intend to incorporate this in a batch, to ease the users.
Name: fred6008 Date: October 24, 2001 at 14:23:48 Pacific
Reply:
I seldom use batch files and know little about them, but in case no one else gives you a better approach do like you would on the command line. (You do not have to type the patch file each time just FILES.) Enter COPY CON FILES.BAT. Then enter COPY FILE.TXT FILE01.TXT COPY FILE.TXT FILE02.TXT, etc. and do this for sixteen lines. Then type FILES each time you want the sixteen copies. Incidentally, why would you want sixteen copies?
0
Response Number 2
Name: Kim Date: October 24, 2001 at 18:10:45 Pacific
Reply:
I need these 16 files, coz I made use of the Access macro to import from these 16 files. Gotta 'hardcode' it. I can't think of any way out for this.
I did think of doing what you have suggested. I wanted to explore whether there are other alternatives of achieving the same thing. :)
Summary: You mean getting files from several subdirectories, all under a same main directory (or same whole drive) and copy them all to a same (other) directory, without copying the directory structure from th...
Summary: First of all, use the following version of the script that overrides the problem of file names with embedded blanks and has other minor improvements. @Echo Off :: CDAT.BAT Syntax: CDat OldDir NewDir [...
Summary: Hi everyone... hope someone can help me out here! How would I go about browsing and then copying files using DOS? Windows will not run on my PC at the moment and until I can rectify it I need to retri...