Presentation is loading. Please wait.

Presentation is loading. Please wait.

Command Prompt Chapter 7 Using ATTRIB, SUBST, XCOPY, DOSKEY, and the MS-DOS Text Editor Richard Goldman ©January 31, 2000.

Similar presentations


Presentation on theme: "Command Prompt Chapter 7 Using ATTRIB, SUBST, XCOPY, DOSKEY, and the MS-DOS Text Editor Richard Goldman ©January 31, 2000."— Presentation transcript:

1 Command Prompt Chapter 7 Using ATTRIB, SUBST, XCOPY, DOSKEY, and the MS-DOS Text Editor Richard Goldman ©January 31, 2000

2 ATTRIB Command There are four attributes stored in the root directory about each file. R – Read only – protects a file from deletion or overwrites. A – Archive – set each time a file is written S – System – indicates that it is a system file H – Hidden – hides files from normal view

3 ATTRIB Syntax ATTRIB [+R|-R] [+A|-A] [+S|-S] [+H|-H] [[drive:][path]filename] [/S] /S changes all files in path ATTRIB without any parameters displays current settings.

4 SUBST Command (Substitute) The substitute command allows you to substitute a drive letter for a path name. Syntax To Set: –SUBST [drive1: [drive2:] path] –drive1 is the new drive letter. To Undo: –SUBST drive1: /D To View current setting: –SUBST

5 XCOPY Command External command that allows you to copy the contents of subdirectories and trees as well as individual files. Your computer will run either: XCOPY – 16 bit version – while in “real” DOS XCOPY32 – 32 bit version – from while in Windows (Virtual DOS) Unlike COPY, XCOPY can copy file attributes and subdirectories.

6 XCOPY Syntax XCOPY source [destination] [parameter(s)] Some important parameters /S Copies directories and subdirectories, except empty ones /E Copies directories and subdirectories, including empty ones /H Copies hidden and system files also /R Overwrites read-only files

7 DOSKEY Command External TSR command that lets you: –Recall command lines –Edit command lines –Keeps a command line history (last 50 in Windows 2000) –Write macros –Automatically loaded in Window 2000 when a Command Prompt window is opened Syntax DOSKEY [/switch...] [macroname=[text]]

8 DOSKEY Use May need to increase buffer size to use effectively. Some Important DOSKEY editing keys: –F7 displays command history –Up, Down arrows recall commands –ESC clears current command –Alt+F7 clears command history

9 EDIT Text Editor MS-DOS text editor that allows you to create, view, and edit simple ASCII text files.

10 End


Download ppt "Command Prompt Chapter 7 Using ATTRIB, SUBST, XCOPY, DOSKEY, and the MS-DOS Text Editor Richard Goldman ©January 31, 2000."

Similar presentations


Ads by Google