Commands - Command Line Utilities Attrib Displays, sets, or...

Info iconThis preview shows pages 1–4. Sign up to view the full content.

View Full Document Right Arrow Icon
Command Line Utilities Attrib Displays, sets, or removes the read-only, archive, system, and hidden attributes assigned to files or directories. Used without parameters, attrib displays attributes of all files in the current directory. Syntax attrib [{ +r | -r }] [{ +a | -a }] [{ +s | -s }] [{ +h | -h }] [[ Drive : ][ Path ] FileName ] [ /s [ /d ]] Parameters +r Sets the read-only file attribute. -r Clears the read-only file attribute. +a Sets the archive file attribute. -a Clears the archive file attribute. +s Sets the system file attribute. -s Clears the system file attribute. +h Sets the hidden file attribute. -h Clears the hidden file attribute. [ Drive : ][ Path ] FileName Specifies the location and name of the directory, file, or set of files for which you want to display or change attributes. You can use wildcard characters (that is, ? and *) in the FileName parameter to display or change the attributes for a group of files. /s Applies attrib and any command-line options to matching files in the current directory and all of its subdirectories. /d Applies attrib and any command-line options to directories. /? Displays help at the command prompt.
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Cmd Starts a new instance of the command interpreter, Cmd.exe. Used without parameters, cmd displays the version and copyright information of the operating system. Syntax cmd [{ /c | /k }] [ /s ] [ /q ] [ /d ] [{ /a | /u }] [ /t: FG ] [ /e: { on | off }] [ /f: { on | off }] [ /v: { on | off }] [ String ] Parameters /c Carries out the command specified by String and then stops. /k Carries out the command specified by String and continues. /s Modifies the treatment of String after /c or /k . /q Turns the echo off. /d Disables execution of AutoRun commands. /a Formats internal command output to a pipe or a file as American National Standards Institute (ANSI). /u Formats internal command output to a pipe or a file as Unicode. /t: FG Sets the foreground F and background G colors. The following tables lists valid hexadecimal digits that you can use as the values for F and G . Value Color 0 Black 1 Blue 2 Green 3 Aqua 4 Red 5 Purple 6 Yellow 7 White 8 Gray 9 Light blue A Light green B Light aqua
Background image of page 2
C Light red D Light purple E Light yellow F Bright white /e:on Enables command extensions. /e:off Disables commands extensions. /f:on Enables file and directory name completion. /f:off Disables file and directory name completion. /v:on Enables delayed environment variable expansion. /v:off Disables delayed environment variable expansion. String Specifies the command you want to carry out. /? Displays help at the command prompt. Copy Copies one or more files from one location to another. Syntax copy [ /d ] [ /v ] [ /n ] [{ /y | /-y }] [ /z ] [{ /a | /b }] Source [{ /a | /b }] [ + Source [{ /a | /b }] [ + ...]] [ Destination [{ /a | /b }]] Parameters /d Allows the encrypted files being copied to be saved as decrypted files at the destination. /v
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 4
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 20

Commands - Command Line Utilities Attrib Displays, sets, or...

This preview shows document pages 1 - 4. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online