Computing.Net > Forums > Disk Operating System > Copy Files Using Batch

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

Reply to Message Icon

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.

Please help....



Sponsored Link
Ads by Google

Response Number 1
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. :)

Kim


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Disk Operating System Forum Home


Sponsored links

Ads by Google


Results for: Copy Files Using Batch

Remote copy files by batch www.computing.net/answers/dos/remote-copy-files-by-batch/13182.html

how to copy files using date www.computing.net/answers/dos/how-to-copy-files-using-date/12582.html

Copying files - Browsing Files www.computing.net/answers/dos/copying-files-browsing-files/15645.html