well Kash, Save typing when using the DOS COPY command.
To copy files, one would normally type in the following.
COPY sourcefilepath\sourcefile(s) destinationfilepath\destionati onfile(s)
If you are currently in the source file path's directory, you probably know that you can skip that part of the COPY command. What you may not know is that you can do the same if you are in the destination file's path.
For example, say you are in the C:\BITMAP directory, and you want to copy all of the BMP files from the A: drive to C:\BITMAP. Instead of typing
COPY A:\*.BMP C:\BITMAP
You can just type
COPY A:\*.BMP
source: http://malektips.com/dos0015.h tml
or
Allows the user to copy one or more files to an alternate location.
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).
Examples
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.
For more information , please do visit source site:
http://www.computerhope .com/copyhlp.htm
Hope it will help you out.
Answered by
Uttam
, an ibibo Master,
at
6:54 PM on May 12, 2008