copy file with batch

Linksys Dual-band wireless-n gigabit wir...
January 24, 2010 at 01:03:33
Specs: Windows XP
Pls I need help on something that i dont have enough idea on it, i want to create batch file that will copy a certain file automatically from one location to another e.g if i open the batch file it will copy a file from my document folder to removerble disk.


See More: copy file with batch

Report •

#1
January 24, 2010 at 01:11:42
This should be all you need: just use the copy command in the batch file and use full path statements.

Copies one or more files to another location.

COPY [/D] [/V] [/N] [/Y | /-Y] [/Z] [/A | /B ] source [/A | /B]
[+ source [/A | /B] [+ ...]] [destination [/A | /B]]

source Specifies the file or files to be copied.
/A Indicates an ASCII text file.
/B Indicates a binary file.
/D Allow the destination file to be created decrypted
destination Specifies the directory and/or filename for the new file(s).
/V Verifies that new files are written correctly.
/N Uses short filename, if available, when copying a file with a
non-8dot3 name.
/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.
/Z Copies networked files in restartable mode.

The switch /Y may be preset in the COPYCMD environment variable.
This may be overridden with /-Y on the command line. Default is
to prompt on overwrites unless COPY command is being executed from
within a batch script.


Report •
Related Solutions


Ask Question