Windows XP Desktop. Open DOS Command Window.

Slides:



Advertisements
Similar presentations
DOS commands.
Advertisements

A batch file is a file that contains a number of DOS commands, each of which could be run individually from the command prompt. By putting them into a.
Excel Lesson 1 Excel Basics. Task 1  Goals  Learn about Excel  Start Excel  Explore the Excel screen  Explore the Excel workbook  Explore the worksheet.
A+ Guide to Software, 4e Chapter 6 Windows 9x/Me Commands and Startup Disk.
Access - Project 1 l What Is a Database? –A Collection of Data –Organized in a manner to allow: »Access »Retrieval »Use of That Data.
MCT260-Operating Systems I Operating Systems I Navigating the File System.
Activity One Use the Windows Explorer program to create a new folder. Name the folder by your first name. Click on the windows explorer icon then highlight.
© 2007 The McGraw-Hill Companies, Inc. All rights reserved Working with the Command- Line Interface Chapter 14.
MCT260-Operating Systems I Operating Systems I Routine File Management Part One.
MCT260-Operating Systems I Operating Systems I Routine File Management Part Two.
XP New Perspectives on Microsoft Office Excel 2003, Second Edition- Tutorial 11 1 Microsoft Office Excel 2003 Tutorial 11 – Importing Data Into Excel.
Working in DOS DOS is a true operating system
Installing Windows XP Professional Using Attended Installation Slide 1 of 41Session 2 Ver. 1.0 CompTIA A+ Certification: A Comprehensive Approach for all.
Operating System Fundamentals
© 2010 The McGraw-Hill Companies, Inc. All rights reserved Mike Meyers’ CompTIA A+ ® Guide to Managing and Troubleshooting PCs Third Edition Working with.
Laboratory Exercise # 3 – Basic File Management Office Productivity Tools 1 Laboratory Exercise # 3 Basic File Management Objectives: At the end of the.
User Interfaces Operating Systems Lecture 2, 20 March 2003 Mr. Greg Vogl Uganda Martyrs University.
Or CMD/BATCH.  Title this comand makes the cmd prompt’s title whatever you would like it to be.
1 Lab 1-1 Using the Command Line Copyright © 2006 Heathkit Company, Inc. All Rights Reserved.
Ch 71 Using ATTRIB, SUBST, XCOPY, DOSKEY, and the Text Editor.
PC Maintenance: Preparing for A+ Certification Chapter 29: Managing Files.
EMT 2390L Lecture 2 Dr. Reyes. Outline What is the Shell Basic commands Linux Filesystem System commands.
Ch 51 Internal Commands COPY and TYPE. Ch 52 Overview Will review file-naming rules.
DOS Commands What is a command Types of DOS Commands Basic Terms
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.
Chapter 9 Part II Linux Command Line Access to Linux Authenticated login using a Linux account is required to access a Linux system. The Linux prompt will.
Review Questions for Chapter 1 Test
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
Ch 21 Command Syntax Using the DIR Command with Parameters and Wildcards.
Gene Perkins, Lassen High School Networking Academy
By NaTasha James.  Back up your persnal data on a hard drive,USB drive, DVD, or any other external media  Insert your windows operating installation.
®® Microsoft Windows 7 for Power Users Tutorial 13 Using the Command-Line Environment.
Ch 41 Program Files, Data Files, and Subdirectories.
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.
ULSTER COUNTY COMMUNITY COLLEGE CIS 116Linux (Part 2) First CommandsKarl Wick.
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.
Command Prompt Chapter 10 Introduction to Batch Files Richard Goldman February 7, 2000.
The Command Line Mostly MS Dos with some UNIX/LINUX Copyright © Curt Hill.
Getting Started Additional information. Important DOS Commands Getting Started dirlists disk directories verdisplays OS version clsclear command prompt.
XP New Perspectives on Windows 2000 Professional Windows 2000 Tutorial 2 1 Microsoft Windows 2000 Professional Tutorial 2 – Working With Files.
A Guide to MySQL 3. 2 Introduction  Structured Query Language (SQL): Popular and widely used language for retrieving and manipulating database data Developed.
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.
Computer Information Technology – Section 4. Desktop and Taskbar Objective: To know to create and change files and folders.
Chapter 1 – Matlab Overview EGR1302. Desktop Command window Current Directory window Command History window Tabs to toggle between Current Directory &
Lab Assignment 1 Getting Started. Submitting the LABS for grading Subject line of message: CTEC 110 WA Lab 1 Assignments Attachment file names:
Lab Assignment 4 Using Batch Files
Week 8: Linux / ubuntu Dr. I. H. Shah. / CSCS 301 Fall 2009.
Java Programming, Second Edition Appendix A Working with Java SDK 1.4.
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.
Basic DOS How to get some work done. It’s all a file Everything is a file: OS files, Application files, Data files and Game files Files have 8.3 names:
Copyright © 2007 Heathkit Company, Inc. All Rights Reserved PC Fundamentals Presentation 10 – Using the Command Line.
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.
THE C PROGRAMMING ENVIRONMENT. Four parts of C environment  Main menu  Editor status line and edit window  Compiler message window  “Hot Keys” quick.
XP New Perspectives on Microsoft Windows XP Tutorial 2 1 Microsoft Windows XP Working with Files Tutorial 2.
Guide to Parallel Operating Systems with Windows 7 and Linux Chapter 6 Directory Commands.
Operating System. What is Operating System OS is system software, which may be viewed as collection of software consisting of procedures for operating.
1 Lesson 9 Windows Management Computer Literacy BASICS: A Comprehensive Guide to IC 3, 3 rd Edition Morrison / Wells.
Guide to Parallel Operating Systems with Microsoft Windows XP and Linux Chapter 4 Directory Commands.
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.
MS-DOS is an acronym for MicroSoft Disk Operating System It is a CUI based operating system. It provides user with a command prompt (generally called.
Systems Administration (Windows) BIT3111 – Lecture 5 (Introduction to Windows OS)
Vi Editor.
Command Syntax Chapter 2 Using the DIR Command with
Operating System Fundamentals
OPERATING SYSTEM B-TECH III YEAR I SEM BRANCH :ECE
1.3 Given a scenario, apply appropriate Microsoft command line tools
Presentation transcript:

Windows XP Desktop

Open DOS Command Window

An Alternative Way

DOS (console) Window

Change Drives To change to another disk drive, key in the drive letter ( ‘A’, ‘C’, ‘D’, etc) followed by a colon (‘:’) then press the key.

Change Drives The DOS Prompt should now look like the following. Drive A: is now the current default drive.

The DIR Command We have a directory full of disk files We have a directory full of disk files How do we look at what is on the disk or what files are in a directory? How do we look at what is on the disk or what files are in a directory? What is a directory anyway? What is a directory anyway? Use the DIR command Use the DIR command

Entering the DIR Command

/? To Get Help on the DIR Command

DIR Command At the top At the top Volume label Volume label serial number serial number drive (and directories) drive (and directories)

The DIR Command Shows For each file file name file extension file size (in bytes) file date (created or last modified) file time (created or last modified) at the bottom at the bottom # of files # of files bytes used bytes used # of directories # of directories bytes available bytes available

DIR Command Options /P pause after displaying a page /P pause after displaying a page /W display ‘wide’ (five files per column) /W display ‘wide’ (five files per column) /X includes short filenames /X includes short filenames Change Sort Order Change Sort Order /O - alpha by main file name then extension /O - alpha by main file name then extension /ON - alpha by main file name /ON - alpha by main file name /OE - alpha by extension /OE - alpha by extension /OEN - alpha by extension, then main name /OEN - alpha by extension, then main name /OD - by date and time /OD - by date and time /OS - by size /OS - by size Alternate format /O:S Alternate format /O:S

EXAMPLES Insert your DATADISK in drive A Insert your DATADISK in drive A List all files alphabetically by file name List all files alphabetically by file name Find the smallest file Find the smallest file Find the oldest file Find the oldest file How many files have an “.LST” extension How many files have an “.LST” extension How many files are there on the disk How many files are there on the disk How many files have 1~299 bytes (size) How many files have 1~299 bytes (size) How many files do not have an extension How many files do not have an extension

A note on the order switch You can reverse the order of the optional parameter of the ‘sort order’ switch (pg 48). You can reverse the order of the optional parameter of the ‘sort order’ switch (pg 48). If you put a dash ‘-’ in front of the optional parameter, the order is reversed. If you put a dash ‘-’ in front of the optional parameter, the order is reversed. Examples: Examples: A:\>DIR /OE A:\>DIR /O-E A:\>DIR /OE A:\>DIR /O-E A:\>DIR /OS A:\>DIR /O-S A:\>DIR /OS A:\>DIR /O-S

wildcards and the DIR When you enter DIR you get all files in that directory listed for you. When you enter DIR you get all files in that directory listed for you. There are 2 wildcards that allow you to select the files to be listed There are 2 wildcards that allow you to select the files to be listed ?Replaces a single character ?Replaces a single character *replaces a number of characters *replaces a number of characters

The * wildcard DIR lists all files in that directory DIR lists all files in that directory DIR PA* lists all files starting with ‘PA’ DIR PA* lists all files starting with ‘PA’ DIR *T lists all files ending with an ‘T’ DIR *T lists all files ending with an ‘T’ DIR A*LS lists all files starting with an ‘A’ and ending with an ‘LS’ DIR A*LS lists all files starting with an ‘A’ and ending with an ‘LS’ DIR *.PPT lists all files with a.PPT extension DIR *.PPT lists all files with a.PPT extension DIR *T.* lists all files where the last letter of the file name (not the ext) is “T” DIR *T.* lists all files where the last letter of the file name (not the ext) is “T”

Using your DATADISK How many files start with a “P”? How many files start with a “P”? How many files have an extension of “XLS”? How many files have an extension of “XLS”? How many files have an extension that starts with “W”? How many files have an extension that starts with “W”? How many file names start with “INV”? How many file names start with “INV”? How many files have an “SU” somewhere in their file name (not extension)? How many files have an “SU” somewhere in their file name (not extension)?

The ? wildcard The ? replaces a single character The ? replaces a single character DIR PALETTE???.BMP lists all files that start with ‘PALETTE’, then any 3 characters, then ‘BMP’ DIR “PALETTE ??.BMP” lists all files starting with ‘Palette[space]’, then any 2 characters, then ‘BMP’. DIR “PALETTE ??.BMP” lists all files starting with ‘Palette[space]’, then any 2 characters, then ‘BMP’. What happens if you try it without the quotes? What happens if you try it without the quotes?

Using your DATADISK How many files have an “N” as the second letter of their file name? How many files have an “N” as the second letter of their file name? How many files have a 3 character extension that starts with “PP”? How many files have a 3 character extension that starts with “PP”? How many files have a “FT” in the 3 rd and 4 th letters? How many files have a “FT” in the 3 rd and 4 th letters?

Default Switches DOS saves important settings in a memory area called the DOS ENVIRONMENT DOS saves important settings in a memory area called the DOS ENVIRONMENT to see the environment, key in: A:\>SET to see the environment, key in: A:\>SET the env. variable for DIR is DIRCMD the env. variable for DIR is DIRCMD to change the settings, key in: to change the settings, key in: A:\SET ‘environment variable”=string to set DIR commands enter (example) A:\SET DIRCMD=/P/O to set DIR commands enter (example) A:\SET DIRCMD=/P/O now again, key in A:\>SET now again, key in A:\>SET

Attributes DIR /AH Hidden files DIR /AH Hidden files DIR /AR Read only DIR /AR Read only DIR /AS System files DIR /AS System files DIR /AA Archive files - not backed up DIR /AA Archive files - not backed up