Vrthe1 LKG


Gender:  Joined: 03 Oct 2007 Posts: 45
Bank: 12251 FunDollar
Current Location:  User Country:  User's local time: 2012 May 24 - 9:47 PM
     votes: 1
34.3 
Medals: None
Items
|
Posted: 04 October 2007, 7:21 pm Post subject: copy folder in dos
|
 |
|
Syntax
Copies one or more files to another location.
COPY [/A | /B] source [/A | /B] [+ source [/A | /B] [+ ...]] [destination] [/A | /B]] [/V] [/Y | /-Y]
source Specifies the file or files to be copied.
/A Indicates an ASCII text file.
/B Indicates a binary file.
destination Specifies the directory and/or filename for the new file(s).
/V Verifies that new files are written correctly.
/Y Suppresses prompting to confirm you want to overwrite an existing destination file.
/-Y Causes prompting to confirm you want to overwrite an existing destination file.
The switch /Y may be preset in the COPYCMD environment variable. This may be overridden with /-Y on the command line.
To append files, specify a single file for destination, but multiple files for source (using wildcards or file1+file2+file3 format).
Example
The below example would copy all files in the current directory to the floppy disk in drive a:
copy *.* a:
Copy the autoexec.bat, usually found at root, and copy it into the windows directory; the autoexec.bat can be substituted for any file(s).
copy autoexec.bat c:\windows
Copy the win.ini file, which is already in your windows directory, to the windows directory, without prompting if you wanted to overwrite the file or not.
copy win.ini c:\windows /y
Copy the contents in myfile2.txt and combine it with the contents in myfile1.txt.
copy myfile1.txt+myfile2.txt
Finally, a user can create a file using the copy command. In the below example we create the file called "test.txt".
copy con test.txt
Once the above command has been typed in, a user could type in whatever he or she wishes. When you have completed creating the file, you can save and exit the file by pressing CTRL+Z, which would create ^Z, and then press enter. An easier way to view and edit files in MS-DOS would be to use the |
|
NiRaN Site Admin


Gender:  Joined: 27 Jun 2006 Posts: 5511 Location: Jokes Corner Bank: 3191813 FunDollar
Current Location:  User Country:  User's local time: 2012 May 24 - 9:47 PM
   votes: 14
109622.5 
Medals: 4 (View more...)
Items

|
|
Dannies14 Pre KG


Gender:  Joined: 14 May 2009 Posts: 12
Bank: 0 FunDollar
Current Location:  User Country:  User's local time: 2012 May 24 - 9:47 PM
 
18.3 
Medals: None
Items
|
Posted: 14 May 2009, 2:16 pm Post subject: Re: copy folder in dos
|
 |
|
Tnx,
Your site is very useful to us
Tnx. |
|
Dannies14 Pre KG


Gender:  Joined: 14 May 2009 Posts: 12
Bank: 0 FunDollar
Current Location:  User Country:  User's local time: 2012 May 24 - 9:47 PM
 
18.3 
Medals: None
Items
|
Posted: 14 May 2009, 2:17 pm Post subject: Re: copy folder in dos
|
 |
|
Tnx,
Your site is very useful to us
Tnx. |
|