Key
pathname1 The path and filename of the first file(s)
pathname2 The path and filename of the second file(s)
/D Display differences in decimal format. (default)
/A Display differences in ASCII characters.
/L Display line numbers for differences.
/N=number Compare only the first X number of lines in the file.
/C do a case insensitive
string comparison
Running COMP with no parameters will result in a prompt for the 2 files and any options
To compare sets of files, use wildcards in pathname1 and pathname2 parameters.
When used with the /A option COMP is similar to the FC command but it displays the individual
characters that differ between the files rather than the whole line.
To compare files of different sizes, use /N= to compare only the first
n
lines (common portion of
each file.)
COMP will normally
finish with a
Compare more files (Y/N)
prompt
to suppress this: ECHO n|COMP
“Shall I compare thee to a summer's day” ~ William Shakespeare
CON2PRT.exe
(Zero Admin Kit)
Connect or disconnect a Printer
All commands issued using this utility will affect only the user currently logged in. Con2prt is
therefore ideal for managing NETWORK printer connections when used in a login script.
Syntax
CON2PRT /f
CON2PRT /c \\PrintServer\PrintShare
CON2PRT /cd \\PrintServer\PrintShare
Key
/f - remove all network printer connections
/c - connect to \\PrintServer\PrintShare
/cd - connect to and set PrintShare as the default printer
Several switches can be combined in one command line. So you can remove all connections
before adding new ones all in one command, you can only specify one default printer.
For recent versions of Windows Microsoft now recommend the more flexible
RUNDLL32
in
preference to con2prt.
“I think you know as well as I do what the problem is, Dave. You and Dr. Poole were planning
to disconnect me. I cannot allow this to happen” - HAL
COPY
Copy one or more files to another location.
Syntax
COPY source destination [options]
COPY
source1 +
source2..
destination [
options]
Key
source : Pathname for the file or files to be copied.
/A : ASCII text file (default)
/B : Binary file copy - will copy extended characters.
destination : Pathname for the new file(s).
/V :
Verify
that the new files were written correctly.
/N : If at all possible, use only a short filename (8.3) when
creating a destination file. This may be necessary
when copying between
disks that are formatted differently e.g NTFS and VFAT, or when
archiving data to an ISO9660 CDROM.
/Z : Copy files in restartable mode.
If the copy is
interrupted part way through, it will restart if possible. (use
on slow
networks)
/Y : Suppress confirmation prompt (Windows 2000 only)
/-Y : Enable confirmation prompt (Windows 2000 only)
Chia sẻ với bạn bè của bạn: