How to copy files, How to rename files, How to copy files -6 how to rename files -6 – Gasboy CFN III Manager Manual V3.6 User Manual
Page 178: Cp without error messages
CFN3 File System
Site Controller Files
Page 17-6 MDE-4871 CFN III Manager’s Manual for Windows® XP Embedded - Version 3.6 · August 2010
How to Copy Files
Use the command COPY (COP) or CP to make a copy of a file. You must specify the original
file and the file to copy to on the command line (the command line is the line starting with the
name of the current drive and an asterisk; for example, [P:]*). If you do not specify the
filenames, you will not be prompted for them.
COPY (COP)
[P:]* COPY PRICE.CMD PRICE.BAK
↵
[P:]*
CP
[P:]* CP PRICE.CMD BIN/PRICE.BAK
↵
PRICE.CMD copied to PRICE.BAK
[P:]*
You can use the wildcards ? and * with either copy command. The commands can copy files
between directories, but you must use full pathnames.
CP without Error Messages
The CP command with the I option suppresses error messages. CP;I silently skips copying any
files it is told to copy that does not exist. For example, if there is no NOPE.TXT file, then the
CP command without the I option results in an error message.
[P:]* CP R:NOPE.TXT A:
↵
Can’t find NOPE.TXT
[P:]*
[P:]* CP;I R:NOPE.TXT A:
↵
[P:]*
With the I option, there is no error message. The I option is useful in command files when you
are copying files, some of which may legitimately be absent. In such cases, this option avoids
confusing error messages.
How to Rename Files
Use the command RENAME or REN to change the name of a file. You must specify the
original filename and the new filename on the command line. If you do not specify the
filenames, you will not be prompted for them.
RENAME (REN)
[P:]* RENAME PRICE.CMD PRICE.BAK
↵
[P:]* *