Computing.Net > Forums > Disk Operating System > copying in dos

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.

copying in dos

Reply to Message Icon

Name: perrio28
Date: November 15, 2004 at 13:57:06 Pacific
OS: xp
CPU/Ram: pentium 4
Comment:

I am doing an assignment for a class and we are to copy one file into 2 directories using one command, I am not sure how to do this



Sponsored Link
Ads by Google

Response Number 1
Name: dominicus
Date: November 15, 2004 at 19:48:27 Pacific
Reply:

Is this your actual assignment? or something you need to do in your assignment..
The answer , anyways is a batch file...same as entering a command at the command line except you use a straight text editor to enter the command on a text doc..use a new line for each command..dos will run all (in this case two) the commands it finds in any file with the .bat extension..
eg..
mybatch.bat
copy c:\myfile c:\dir1
copy c:\myfile c:\dir2


0

Response Number 2
Name: dominicus
Date: November 15, 2004 at 19:53:36 Pacific
Reply:

oops..don't put 'mybatch.bat' inthe batch file -it was just suggested as a name..just the commands..and use a straight text editor like notepad or the dos 'edit' command...


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: copying in dos

how do i copy in dos www.computing.net/answers/dos/how-do-i-copy-in-dos/12386.html

cd copying in dos www.computing.net/answers/dos/cd-copying-in-dos/5960.html

Prevent copying in DOS www.computing.net/answers/dos/prevent-copying-in-dos/13685.html