Computing Concepts - PowerPoint PPT Presentation

1 / 21
About This Presentation
Title:

Computing Concepts

Description:

Entering MS-DOS commands. Commands consist of. A single word. Optional extra information ... When using MS-DOS, it always places you in a directory ' ... – PowerPoint PPT presentation

Number of Views:19
Avg rating:3.0/5.0
Slides: 22
Provided by: BrianFa8
Category:

less

Transcript and Presenter's Notes

Title: Computing Concepts


1
Computing Concepts
  • File Organisation and MS-DOS
  • II

2
What we have done so far
  • Files organised into directories
  • Directories form a hierarchy
  • Operating systems
  • Running programs
  • Managing files
  • Managing memory
  • Controlling peripherals
  • Utility programs

3
What we are going to do today
  • Examine the MS-DOS operating system

4
MS-DOS uses a Command Line
  • Do not use mouse
  • Type in commands as words
  • Use a command line box
  • Start Programs Accessories Command Prompt
  • Demo

5
Entering MS-DOS commands
  • Commands consist of
  • A single word
  • Optional extra information
  • E.g.
  • c\gtver
  • c\gtping www.playboy.com
  • c\gtping www.bbc.co.uk

6
The current directory
  • When using MS-DOS, it always places you in a
    directory
  • Everybody has got to be somewhere (Eccles the
    Goon Show circa 1954)
  • This is called the Current Directory
  • The command prompt tells you what the current
    directory is
  • E.g. c\windows\tempgt
  • Current directory is \windows\temp on the c drive

7
Finding out what is in the current directory
  • Use the dir command
  • E.g. c\gtdir

8
(No Transcript)
9
(No Transcript)
10
(No Transcript)
11
(No Transcript)
12
This file is named win2k.xpr It is 189,624 bytes
in size
13
Total size of files in this directory Number of
bytes still available on the disc
14
Changing drive in MS-DOS
  • Demo
  • Use drive name (A, C etc)

15
File handling in MS-DOS
16
Using edit
  • Demo
  • Creating text files
  • Editing text files

17
Using copy
  • Demo
  • Using wildcards in copying
  • c\gtcopy .txt c\temp
  • c\gtcopy . c\temp

18
Batch files
  • Batch files
  • Collecting batches of commands into one command
  • Like a macro in other applications e.g. Word,
    Excel

19
A batch file example
  • What directory structure does this batch file
    create

cd \ md A md B cd A md C
20
A second batch file example
  • Write a batch file to create this directory
    structure

cd \ md A md B md C cd B md D
21
A third batch file example
  • Write a batch file to create this directory
    structure

cd \ md D md A cd D md B cd \A md D
Write a Comment
User Comments (0)
About PowerShow.com