Posted 12 July 2008 - 10:17 AM
hello every one
i am just started to learn about batch files, and done some really basic ones
So i was just trying out the copy command just to try one for myself, but seem to be getting stuck
"EXAMPLE" I WAS TRYING TO COPY C:\TEMP TO C:\Documents and Settings\ROWLEY.PRIVATE-3264A01\My Documents
I also tryed copy c:\temp to c:\my documents.
but as i am new to this i am doing something wrong can anyone shed any light on this for me. i am using windows xp.
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).
copy *.* a:
Copy all files in the current directory to the floppy disk drive.
copy autoexec.bat c:\windows
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 win.ini c:\windows /y
Copy the win.ini file in the current directory to the windows directory. Because this file already exists in the windows directory it normally would prompt if you wish to overwrite the file. However, with the /y switch you will not receive any prompt.
Copy the contents in myfile2.txt and combines it with the contents in myfile1.txt.
TOSHIBA LAPTOP L300-1BV/ WINDOWS VISTA HOME PREMIUM SP2 / 2 GB RAM/ 32 BIT /windows 7 vista home premium, 3GB Ram/ 64 bit