Ch 71 Using ATTRIB, SUBST, XCOPY, DOSKEY, and the Text Editor.

Slides:



Advertisements
Similar presentations
DOS commands.
Advertisements

1 SEDIT & S/REXX SEDIT and S/REXX Mainframe-caliber tools for UNIX Offered by Treehouse Software, Inc.
Mainframe-caliber tools for UNIX Treehouse Software, Inc.
A Guide to Unix Using Linux Fourth Edition
A+ Guide to Software, 4e Chapter 6 Windows 9x/Me Commands and Startup Disk.
© 2007 The McGraw-Hill Companies, Inc. All rights reserved Working with the Command- Line Interface Chapter 14.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment, Enhanced Chapter 7: Advanced File System Management.
A Guide to Oracle9i1 Creating an Integrated Database Application Chapter 8.
1 Using Editors Editors let you create and edit ASCII files UNIX normally includes two editors: vi and Emacs Vi and Emacs are screen editors: they display.
The sequence of folders to a file or folder is called a(n) ________.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment Chapter 7: Advanced File System Management.
MCT260-Operating Systems I Operating Systems I Interfaces to Operating Systems.
FILES  A file is a collection of related information  Files are kept in directories on a disk.
Command Prompt Chapter 7 Using ATTRIB, SUBST, XCOPY, DOSKEY, and the MS-DOS Text Editor Richard Goldman ©January 31, 2000.
© 2010 The McGraw-Hill Companies, Inc. All rights reserved Mike Meyers’ CompTIA A+ ® Guide to Managing and Troubleshooting PCs Third Edition Working with.
Ch 101 Introduction to Batch Files. Ch 102 Overview Will learn to create batch files to automate a sequence of commands to accomplish various tasks.
Or CMD/BATCH.  Title this comand makes the cmd prompt’s title whatever you would like it to be.
© 2012 The McGraw-Hill Companies, Inc. All rights reserved. 1 Third Edition Chapter 4 Disk Operating System (DOS) and the Command-Line Interface McGraw-Hill.
Ch 81 Organizing and Managing Your Hard Disk. Ch 82 Overview Learn how to organize a hard disk efficiently and logically to serve your specific needs.
Ch11 Getting Started with the Operating System. Ch12 Overview Will discuss the purpose and function of an operating system.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment, Enhanced Chapter 7: Advanced File System Management.
Computer Literacy BASICS: A Comprehensive Guide to IC 3, 5 th Edition Lesson 3 Windows File Management 1 Morrison / Wells / Ruffolo.
Ch 51 Internal Commands COPY and TYPE. Ch 52 Overview Will review file-naming rules.
Ch 61 Using DEL, REN, MOVE, and RD /S. Ch 62 Overview Will continue to work with internal commands that help manage and manipulate files.
Chapter 6: Managing Your Data The Windows XP File System File system task on DOS or UNIX Vs. Windows XP –cd or chdir would change your current directory.
XP New Perspectives on Introducing Microsoft Office XP Tutorial 1 1 Introducing Microsoft Office XP Tutorial 1.
The Command Line Interface. The OS files IO.sys MSDOS.sys Command.com IO and MSDOS are hidden files, COMMAND.COM shows in directory listings.
Understanding the Boot Process and Command Line
Chapter 3 Mastering Editors
Ch 21 Command Syntax Using the DIR Command with Parameters and Wildcards.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment Chapter 7: Advanced File System Management.
Gene Perkins, Lassen High School Networking Academy
MICROSOFT WORD GETTING STARTED WITH WORD. CONTENTS 1.STARTING THE PROGRAMSTARTING THE PROGRAM 2.BASIC TEXT EDITINGBASIC TEXT EDITING 3.SAVING A DOCUMENTSAVING.
®® Microsoft Windows 7 for Power Users Tutorial 13 Using the Command-Line Environment.
Ch 101 Chapter 10 Introduction to Batch Files. Ch 102 Overview A batch file is a text file that contains an ordered series of commands.
Ch 41 Program Files, Data Files, and Subdirectories.
Chapter 6 Generating Form Letters, Mailing Labels, and a Directory
1 2 Lab 2: Organizing Your Work. 2 Competencies 3 After completing this lab, you will know how to: 1. Use Explorer to manage files. 2. Copy files. 3.
Microsoft Access Lesson 1 Lexington Technology Center February 11, 2003 Bob Herring On the Web at
Chapter Three The UNIX Editors. 2 Lesson A The vi Editor.
1 The EDIT Program The Edit program is a full screen text editor that allows you to: Create text files Create text files Edit an existing text files Edit.
File Management Presented to The Glades Computer Club January 4, 2001.
Basic Computer and Word Functions, part 1 Read the information and use to answer the questions in the Basic Computer and Word Functions Study Guide.
Copyright © 2010 Wolters Kluwer Health | Lippincott Williams & Wilkins Introduction to Windows Chapter 2.
Key Applications Module Lesson 21 — Access Essentials
Lesson 11: Looking at Files and Folders what a file or folder is on the computer how to recognize a file or folder on the desktop how to recognize the.
Getting Started Additional information. Important DOS Commands Getting Started dirlists disk directories verdisplays OS version clsclear command prompt.
Basic Computer and Word Functions, part 1 Read the information and use to answer the questions in the Basic Computer and Word Functions Study Guide.
Common DOS Commands Additional information. Important DOS Concepts Common DOS Commands  Why format a disk?  Partitioning and Formatting disks  Structure.
Basic MS-DOS. History MS-DOS 1.0 was released in August 1981, and was updated until April 1994 when it was replaced by Windows 95 All versions of windows.
Lesson No: 6 Introduction to Windows XP CHBT-01 Basic Micro process & Computer Operation.
Chapter Three The UNIX Editors.
Operating System Fundamentals 1. Components of an OS 2. Functions of an OS 3. Types of OS 4. Command-line tools.
File and Folder CLI Commands 12/24/ Agenda Overview of OS functions and the SHELL Internal v External Commands Command History Making & Modifying.
Lesson 10 Word Processing Unit 2—Using the Computer.
Windows XP Lab 2 Organizing Your Work Competencies.
Computer Literacy BASICS: A Comprehensive Guide to IC 3, 5 th Edition Lesson 3 Windows File Management 1 Morrison / Wells / Ruffolo.
The Command Line Yep, you need to know this. The Basics Start with the Prompt, what the computer tells you when ready for a command You type a command.
File and File Systems Compiled by IITG Team Need to be reorganized and reworded.
IST 222 Day 6. DOS Naming Conventions A filename contains up to 8 characters, a separating period, and a file extension of up to three characters This.
McGraw-Hill/Irwin The Interactive Computing Series © 2002 The McGraw-Hill Companies, Inc. All rights reserved. Microsoft Excel 2002 Using Macros Lesson.
Computer Literacy BASICS: A Comprehensive Guide to IC 3, 5 th Edition Lesson 3 Windows File Management 1 Morrison / Wells / Ruffolo.
Fundamentals of Windows Mouse n 4 Basic Operations: –Pointing –Clicking –Double Clicking –Dragging.
The Desktop Screen image displayed when a PC starts up A metaphor
Guide To UNIX Using Linux Third Edition
Command Syntax Chapter 2 Using the DIR Command with
An Introduction to Computers and Visual Basic
Grauer and Barber Series
Chapter 6 Using DEL, REN, MOVE, and RD /S Ch 6.
Welcome To Microsoft Word 2016
Presentation transcript:

Ch 71 Using ATTRIB, SUBST, XCOPY, DOSKEY, and the Text Editor

Ch 72 Overview The purpose and function of file attributes will be explained.

Ch 73 Overview Utility commands and programs will be used to manipulate files and subdirectories to make tasks at the command line easier to do.

Ch 74 Overview This chapter will focus on the following commands and programs: è ATTRIB è XCOPY è DOSKEY è EDIT

Ch 75 File Attributes and the ATTRIB Command Root directory keeps track of information about every file on a disk.

Ch 76 File Attributes and the ATTRIB Command Each file in the directory has attributes.

Ch 77 File Attributes and the ATTRIB Command Attributes represented by single letter: è S - System attribute è H - Hidden attribute è R - Read-only attribute è A - Archive attribute

Ch 78 File Attributes and the ATTRIB Command NTFS file system: è Has other attributes è At command line only attributes can change with ATTRIB command are S, H, R, and A

Ch 79 File Attributes and the ATTRIB Command ATTRIB command: è Used to manipulate file attributes

Ch 710 File Attributes and the ATTRIB Command ATTRIB command syntax: ATTRIB [+R | -R] [+A | -A] [+S | -S] [+H | -H] [[drive:] [path] filename] [/S [/D]]

Ch 711 File Attributes and the ATTRIB Command Attributes most useful to set and unset: è R - Read-only è H - Hidden

Ch 712 File Attributes and the ATTRIB Command The A attribute (archive bit) signals file has not been backed up.

Ch 713 File Attributes and the ATTRIB Command XCOPY command can read the archive bit.

Ch 714 File Attributes and the ATTRIB Command è File attributes can be changed from Windows Explorer. è Easier to do these tasks from command prompt.

Ch 715 Activity—Using ATTRIB to make Files Read-Only KEY CONCEPTS: è Using + or - alters attribute è Cannot overwrite or delete read- only files è Can delete read-only files with /F parameter with DEL command

Ch 716 Using Hidden & Archive Attributes with ATTRIB H attribute used to hide file so when DIR command is used the file name is not displayed.

Ch 717 Using Hidden & Archive Attributes with ATTRIB Using hidden attribute allows for manipulation of files.

Ch 718 Using Hidden & Archive Attributes with ATTRIB More difficult to perform file operations on groups of files simultaneously in Windows Explorer.

Ch 719 Using Hidden & Archive Attributes with ATTRIB è The A attribute can flag a file as changed since the last time it was backed up. è ATTRIB command can set and unset this flag.

Ch 720 Activity—Using the H and the A Attributes KEY CONCEPTS: è Reasons for hiding files è D,R,H,A attributes used to help manage files è Use attributes with ATTRIB and XCOPY è Space between each parameter - watch spacing of command syntax carefully

Ch 721 Activity—Using the H and the A Attributes KEY CONCEPTS: è Rename file - keeps attributes è Copy file - does not keep attributes è Use of + and - in setting and unsetting file attributes è Eliminate/add several file attributes with one command

Ch 722 The SUBST Command SUBST command: è External command è Substitutes drive letter for path name è Alleviates keying in long path name

Ch 723 The SUBST Command SUBST command: è Installs programs that recognize disk drive but not the subdirectory è Derives information from a drive that a program does not recognize

Ch 724 The SUBST Command Be cautious when using SUBST with a network drive.

Ch 725 The SUBST Command While substitution is in effect, do not use SUBST with the following commands: è LABEL è CHKDSK è FORMAT è DISKCOPY è DISKCOM è RECOVER è FDISK

Ch 726 The SUBST Command SUBST command syntax: SUBST [drive1: [drive2:]path]

Ch 727 The SUBST Command To undo a substitution: è SUBST drive1: /D To see what has been substituted: è SUBST

Ch 728 Activity—Using SUBST KEY CONCEPTS: è Virtual/logical drives è SUBST å Uses logical/virtual drive letter äConceptually how networks operate å Destination - use drive letter and path äSUBST does not recognize drive letter alone as destination å When done - undo SUBST

Ch 729 The XCOPY Command The XCOPY Command Drawbacks of COPY command: è Reads and copies only one file at a time è Cannot copy subdirectory structure è Copied file does not retain source file attributes

Ch 730 The XCOPY Command XCOPY command: è External command è Copies files that exist in different subdirectories è Can specify drive as source to copy all files on drive. è Provides overwrite protection

Ch 731 The XCOPY Command XCOPY command: è Can be specific about characteristics of files to be backed up è Faster than COPY è By default will not copy system or hidden files

Ch 732 The XCOPY Command Advantages of command line over using Windows Explorer: è Drag and drop problems è Can perform file operations on group of files rather than one file at a time

Ch 733 The XCOPY Command XCOPY syntax: XCOPY source [destination] [/A | /M] [/D[ :date]] [/P] [/S [/E]] [/V][/W] [/C] [/I] [/Q] [/F] [/L] [/H] [/R] [/T] [/U] [/K] [/N] [/O] [/X] [/Y] [/-Y] [/Z] [/EXCLUDE:file1 [+file2] [+file3]…]

Ch 734 Activity—Using the XCOPY Command KEY CONCEPTS: è Recreating structure on DATA disk è Uses of /S, /D, and /M with XCOPY è XCOPY å Default confirms overwrite å Can manipulate A attribute å Can copy hidden files

Ch 735 Multiple XCOPY Parameters XCOPY command: è Performs file operations on hidden, system, and read-only files è Can manipulate files having one or more parameters è Used to accomplish tasks at command line that cannot be accomplished in GUI

Ch 736 Multiple XCOPY Parameters Next activity will copy two files to new directory that had hidden attributes set without removing the H attribute.

Ch 737 Activity—Using Multiple XCOPY Parameters KEY CONCEPTS: è XCOPY with H and L parameters è XCOPY with “SHRIEK” parameters è XCOPY with “SHREK” parameters è System attributes are hidden è Changing file attributes è ATTRIB - order of parameters does not matter

Ch 738 DOSKEY DOSKEY: è External, memory-resident command è Automatically loaded when Command Prompt window opened è Enhances command line editing

Ch 739 DOSKEY è DOSKEY remains in memory only during current DOS session. è DOSKEY acts like an internal command.

Ch 740 DOSKEY TSR (Terminal Stay Resident): è Memory resident commands è Initially works like external command è Does not release memory for duration of Command Prompt work session

Ch 741 DOSKEY DOSKEY: è Recalls and edits command lines è Keeps command history è Used to write a macro

Ch 742 DOSKEY DOSKEY syntax: DOSKEY [/REINSTALL] [/LISTSIZE=size] [/MACROS [:ALL | :exename]] [/HISTORY] [/INSERT | /OVERSTRIKE] [/EXENAME=exename] [/MACROFILE=filename] [macroname=[text]]

Ch 743 DOSKEY Editing Keys Command Summary KEY Up/down Arrows ESC F7 ALT + F7 F8 F9 ALT +F10 EDITING FUNCTION Recall commands Clears command line Displays command history Clears command history Searches command history Selects a command by number Clears macro definitions

Ch 744 DOSKEY Special codes in Doskey macro definitions: è $T Command separator è $1-$9 Batch parameters è $* Symbol replaced by everything following macro name on command line

Ch 745 Activity—Using DOSKEY KEY CONCEPTS: è Using HISTORY parameter with DOSKEY è Defining batch files and macros è How to have more than one command on a line in a Command Prompt Window è Closing Command Prompt window eliminates macros created in this window å Redirecting macros to batch file saves them

Ch 746 The Command Prompt Text Editor Word-processing program: è Used for writing needs è Allows full flexibility in creating and editing documents è Most permit saving document as ASCII text

Ch 747 The Command Prompt Text Editor Text or ASCII files are used to give instructions to the operating system.

Ch 748 The Command Prompt Text Editor Text editor: è Used to create text documents è Used to write batch files è Not a word processor å Cannot format data in document

Ch 749 The Command Prompt Text Editor Text editors: è Every operating system has one è NOTEPAD used on desktop è EDIT used at command prompt window

Ch 750 The Command Prompt Text Editor Edit text editor: è Command line interface text editor è Not a word processor å Cannot format data in documents å Cannot manipulate environment

Ch 751 The Command Prompt Text Editor Edit text editor menus: è Screen menu å Bar at top å Status bar at bottom è File menu å Open new or existing document å Save or print a document å Save document under new name å Exit editor

Ch 752 The Command Prompt Text Editor Edit text editor menus: è Edit menu åCut, copy, paste, delete selected text è Search menu å Find a specified string of text å Repeat the Last Find å Search for specified string of text å Replace string of text with another string of text

Ch 753 The Command Prompt Text Editor Edit text editor menus: è View menu å Split, Size, or Close Edit window è Options menu å Change Printer Port or tab Stops å Choose Colors for Edit window

Ch 754 The Command Prompt Text Editor Edit text editor menus: è Help menu åClick Commands to get a list of all available Edit commands åClick About to view version information for Edit

Ch 755 The Command Prompt Text Editor A variety of cursor movement keys and shortcuts can be used to edit a text file.

Ch 756 The Command Prompt Text Editor Table 7.1 Desired Cursor Movement Keys to Use Keyboard Shortcuts p. 348

Ch 757 Activity—Using the Command Prompt Text Editor KEY CONCEPTS: è Making mouse work è Insert Vs. overstrike mode å key toggles between two modes è Full screen editing å Using mouse and keystrokes å Selecting text

Ch 758 Activity—Using the Command Prompt Text Editor KEY CONCEPTS: è Viewing two files simultaneously è Creating macro è Creating batch files å To execute batch file - key in name

Ch 759 Using Text Data Files Use of text editor to create data: è Desired program not available è Can import text files from many programs è With recorder can record needed data in text file

Ch 760 Activity - Importing a Text File KEY CONCEPTS: è Imported text data into Excel è Tex Import Wizard screen used to define data