Friday, November 19, 2010

Practical Assignment

The mail merge feature in Microsoft Word allows you to type one letter and merge it for a number of people. For this activity, you are going to type a letter inviting your friends to your birthday. Create multiple letters and envelops using mail merge.
Create a data source with 10 names and addresses.
  • You must add one or more of the following in the letter:
·         Clip Art
·         AutoShape
·         WordArt
  •  Create an envelope for the letter also and merge it with the data source. There should be 10 envelopes when it is complete.
 Letter Outline
 Today's Date, 2010
«Title» «FirstName» «LastName»
«Address1»
«City», «PostalCode»
Dear «Title» «LastName»
               
Invitation letter text with proper indentation. Atleast two paragraphs should be there with proper indentation and alignment.


Your Name


Envelope Outline

 «Title» «FirstName» «LastName»
«Address1»
«City», «State» «PostalCode»

Wednesday, November 17, 2010

Topic 1: Getting Started

Open Power Point and you will be prompted by a dialog box with four choices. Each of these options are explained on this page. If Power Point is already open or this box does not appear, select File|New from the menu bar.
[New Presentation dialog box]
AutoContent Wizard
The AutoContent Wizard provides templates and ideas for a variety of presentation types. Page through the wizard by clicking the Next button on the bottom of each page after making necessary choices.
[AutoContent Wizard window]
Design Template
Power Point provides many templates with different backgrounds and text formatting to begin your presentation. Preview each design by highlighting the template name on the list. Press OK after you have chosen the design.
[New Presentation dialog box]
Blank Presentation
Select Blank Presentation to build the presentation from scratch with no preset graphics or formatting.
Open an Existing Presentation
Select this option to open a Power Point presentation that already exists. Select the folder the file is located in from the Look in: drop-down menu and highlight the file on the list. Click Open to open the presentation.
[Open existing presentation dialog box]
AutoLayout
After selecting the presentation type, you will be prompted to choose the layout of the new slide. These layouts include bulleted lists, graphs, and/or images. Click on each thumbnail image and a description will be printed in the message box. Highlight the layout you want and click OK.
[New Slide dialog box]

Topic 2: Screen Views

Screen Layout
The Power Point screen layout in Normal View:
[Power Point screen layout]
Views
Power Point gives you four screen layouts for constructing your presentation in addition to the Slide Show. You can select the page view by clicking the buttons just above the formatting toolbar and the bottom of the page.
[View buttons]
[Normal View]     [Slide View]
Normal View
This screen is split into three sections showing the presentation outline on the left, the slide in the main window, and notes at the bottom.
Slide View
The slide view displays each slide on the screen and is helpful for adding images, formatting text, and adding background styles.
[Outline View] [Slide Sorter View]
Outline View
The presentation outline is displayed on the majority of the screen with small windows for the slide and notes. This view is recommended for editing text.
Slide Sorter View
A small image of each slide is displayed in Slide Sorter view. Slides can easily be ordered and sorted from this screen.
Click the Slide Show button to view the full-screen slide show.

Topic 3: Adding Content

Bulleted Lists on Design Templates
Bulleted lists allow you to clearly display the main points of your presentation on slides. The text boxes on design templates already include bulleted lists. Click the place holder on the slide to begin adding text and press the ENTER key to return to the next line and add a new bulleted item. To go to the next line without adding another bullet, hold down the SHIFT key while pressing ENTER.
Bulleted List from a Text Box
If you are not creating a bulleted list from an existing placeholder on a design template, or if you would like to add an additional bulleted list, follow these steps to create a new list:
  1. In slide view, create a text box by selecting Insert|Text Box from the menu bar.
  2. "Draw" the text box on the slide by holding down the left mouse button while you move the mouse until the box is the size you want it.
  3. Choose Format|Bullets and Numbering from the menu bar.
    [Bullets and Numbering dialog box]
  4. Change the Size of the bullet by changing the percentage in relation to the text.
  5. Choose a color for the bullet from the Color menu. Click More Colors for a larger selection.
  6. Select one of the seven bullet types shown and click OK.
    - OR -
    Click the Picture button to view the Picture Bullet window. Select one of the bullets and click OK.
    - OR -
    Click the Character button to select any character from the fonts on the computer. Select a symbol font such as Wingdings or Webdings from the Bullets from drop-down menu for the best selection of icons. Click on the characters in the grid to see them larger. Click OK when you have chosen the bullet you want to use.
    [Bullet dialog box]
  7. Click OK on the Bullets and Numbering window and use the same methods described in the "Bulleted Lists on Design Templates" to enter text into the bulleted list.
Bulleted Lists and New Slides from an Outline
In Normal or Outline view, text can easily be entered in the outline window and new slides are automatically added. Follow the steps below to become familiar with adding slide content in outline view:
  1. Next to the Slide 1 icon, type the title of the slide. The text you type beside the slide icons will be the large-type titles on each slide.
  2. Press ENTER to type the next line. This will automatically create a new slide. To create a bulleted list for the first slide, press the TAB key or click the demote button [demote] on the More Buttons menu accessible by clicking the "triple arrow" button at the end of the formatting toolbar [More Buttons].
    - OR -
    Press ALT+SHIFT+Right Arrow to demote the selection to a bulleted list item.
  3. Continue entering text for the bulleted list, pressing ENTER at the end of each line to create a new bullet.
  4. Create a multilevel list by executing the demote action again to create a bulleted sublist. Press the promote button [promote] on the More Buttons menu or press ALT+SHIFT+Left Arrow to return to the original list.
  5. Create a new slide by executing the promote action until a new slide icon appears.
  6. Continue creating new slides and bulleted lists by using the demote and promote actions until the presentation is completed. Use the formatting instructions below to format the lists.
If there is more than one bulleted list on the slide, the lists will be designated by numbers enclosed in black boxes. The example below shows the slide created from the outline on the left. The bulleted list on the left side of the slide is labeled list "1" on the outline and the list on the right is labeled list "2". When typing the outline, begin typing in the new list by pressing CTRL+ENTER. In this example, CTRL+ENTER was pressed after typing "Access".
[multiple lists][multiple lists]
Numbered List
Follow these steps to create a numbered list:
  1. Create a text box.
  2. With the text box selected, choose Format|Bullets and Numbering from the menu bar.
  3. Click the Numbered tab at the top of the Bullets and Numbering window.
    [Bullets and Numbering dialog box]
  4. Change the size of the numbers by changing the percentage in relation to the text.
  5. Choose a color for the numbers from the Color menu. Click More Colors for a larger selection.
  6. Change the Start at value if the numbers should not begin with 1.
  7. Select one of the the seven list types shown and click OK.
Resizing a Text Box
Select a text box by clicking on it with the mouse. A border with nine handles will appear around the text box. The four handles on the corners will resize the length and the width of the box at once while the handles on the sides will resize only in one direction. Click one of the handles and drag it with the mouse. Release the mouse button when it is the size you want it to be. Move the text box by clicking and dragging the thick, dotted border with the mouse.
[Text box example]
Text Box Properties
Change the colors, borders, and backgrounds of a text box from the Format AutoShape dialog box.
[Format AutoShape dialog box]
  1. Activate the textbox by clicking on it and select Format|Colors and Lines from the menu bar.
  2. Under the Colors and Lines tab, select a Fill color that will fill the background of the text box. Check the Semitransparent box if you want the slide background to show through the color.
  3. Select a Line color that will surround the box as well as a Style or Weight for the thickness of the line and a Dashed property if the line should not be solid.
  4. Click the Text Box tab.
    [Format AutoShape dialog box]
  5. Change the Text anchor point to reposition the text within the text box.
  6. Set Internal margins to the distance the text should be to the text box edges.
  7. Click OK to add the changes to the text box.
Delete a Text Box
To delete a text box from a template, simply click the border of the text box and press the DELETE key on the keyboard.
Adding Notes
From Normal View, notes can be added to the slide. These notes will not be seen on your presentation, but they can be printed out on paper along with the slide the notes refer to by selecting Print What: Notes Pages on the Print menu.
[Notes window]
Video
To add a video to your presentation select Insert|Movies and Sounds|Movie from File or to insert an animation from Microsoft's gallery choose Insert|Movies and Sounds|Movie from Gallery. Select the video file and click OK.
Audio
To add sound to your presentation select Insert|Movies and Sounds|Sound from Gallery or Sound from File. Select a sound file and click OK.

Topic 4: Color Schemes

The colors of predesigned slide templates can be changed and a color scheme can be added to blank presentations. This page explains how to add color schemes and background images to slides.
Color Schemes
  1. Select Format|Slide Color Scheme from the menu bar.
  2. Click one of the preset color scheme thumbnail images in the Color schemes box.
    [Color Scheme dialog box]
  3. Click the Preview button to see how the scheme will appear on the slide.
  4. To make changes to the color scheme, click the Custom tab on the dialog box.
    [Color Scheme dialog box]
  5. Change the colors of the slide elements by selecting the color swatch beside the name of the element and clicking the Change color button.
  6. Highlight one of the colors from the Text and Line Color window or select the Custom tab to view more color choices and click OK when finished.
    [Text and Line Color dialog box]
  7. When you have finished all color formatting, click Apply to All to apply the color scheme to all the slides in the presentation or Apply to add the scheme only to the current slide.
Backgrounds
Follow these steps to add background colors and patterns to a slide:
  1. Select Format|Background from the menu bar.
    [Background dialog box]
  2. Select a color from the drop-down menu below the Background fill preview or choose More Colors... for a larger selection.
  3. Select Fill Effects from the drop-down menu to add gradients, texture, patterns, or a picture to the background.
    [Fill Effects dialog box]
  4. Gradient tab
    • Select One color if the color chosen will fade into the background and select the color from the Color 1 drop-down menu. Choose Two colors if the gradient will use two colors and select those colors from the Color 1 and Color 2 drop-down menus. Preset provides a selection of color combinations. Select one from the Preset colors drop-down menu.
    • Select the type of gradient from Shading styles.
    • Click one of the four Variants of the styles chosen.
    [Fill Effects dialog box]
  5. Texture tab
    From the Texture window, select a repeating background by scrolling through the thumbnail images or click Other Texture... to select an image from a file.
    [Fill Effects dialog box]
  6. Pattern tab
    Select a two-tone pattern by clicking one of the pattern swatches and selecting the Foreground and Background colors.
    [Fill Effects dialog box]
  7. Picture tab
    Click the Select Picture button to choose a picture from a file. After the picture is selected, a preview and description will be shown in this window.
  8. Click OK to apply the changes made from the Fill Effects windows.
  9. Click Apply to All to add the changes to every slide or Apply to make changes only to the current slide.

Topic 5: Slide Effects

Action Buttons
Use the action button toolbar to add functioning buttons to slides in a presentation.
  1. Select Slide Show|Action Buttons from the menu bar. Click the bar across the top of the button menu and drag it off the menu so it becomes a floating toolbar.
    [Action Buttons toolbar]
  2. Click one of the button faces and draw the button on the slide using the mouse. The Action Settings menu will then appear.
    [Action Settings dialog box]
  3. Set the actions under either the Mouse Click or Mouse Over tabs. Actions specified for Mouse Click will execute when the button is clicked on the slide while actions for Mouse Over will occur when the mouse pointer hovers over the button.
  4. Select an action for the button by choosing a Hyperlink to destination.
  5. If you want a sound to be played when the button is clicked, check the Play sound box and choose a sound from the drop-down menu.
  6. Click OK when finished.
    [action button]
  7. The button on the slide can be resized using the white box handles and the depth of the button can be changed by dragging the yellow diamond.
Slide Animation
Several animations for slide objects are available through the drop-down menus on the menu bar. First, select the text box or graphic that will be animated. Select Slide Show|Preset Animation and choose from one of the options. To select a different animation or turn the animation off, select the appropriate choice from the same menu. For more options, follow the procedure below:
[Custom Animation dialog box]
  1. Select Slide Show|Custom Animation from the menu bar.
  2. Select the object on the slide that will be animated from the Check to animate slide objects list.
  3. Under the Effects tab, select the animation type (or select "No Effect" to turn an animation off) and direction from the drop-down menus and select a sound if you wish.
  4. Select an After animation effect if the text should change colors after the animation executes.
    • Color palette - Select one of the color swatches or click More Colors for a larger selection. The text will change to the selected color when the mouse is clicked during the slide show.
    • Don't Dim - This option erases all After Animation effects.
    • Hide After Animation - Text will be immediately erased after the animation is completed.
    • Hide on Next Mouse click - The text will be erased when the mouse is clicked.
  5. Choose the style of displaying the text under the Introduce text section. The drop-down menu provides options for displaying the characters for each bulleted item. Select "All at once" for the text to appear immediately, "by Word" for the text to appear one word at a time, or "by Letter" for a typewriter effect that displays one letter at a time.
  6. Click the Order & Timing tab to alter the order that the objects appear on the slide. Highlight the object in the Animation order box and click the Move arrows to move the object's position within the animation sequence. Under Start animation, choose "On mouse click" to activate the animation by clicking the mouse or "Automatically" for the animation to execute after a set number of seconds.
    [Custom Animation dialog box]
  7. Click the Preview button at any time to preview the animation on the slide and click OK when finished.
Animation Preview
Select Slide Show|Animation Preview from the menu bar to view the Animation Preview window. Click anywhere within this window with the mouse to preview the animations that have been set. To hide the window, click the x close button in the top, right corner.
[Animation Preview window]
Slide Transitions
Add transition effects when changing slides by following these steps:
[Slide Transition dialog box]
  1. Select Slide Show|Slide Transition from the menu bar.
  2. From the Effect section, choose a transition from the drop-down menu and notice the preview after the transition is selected. Select a speed for the transition as well.
  3. Under Advance, check "On mouse click" for the slide transition to occur by clicking the mouse or using keystrokes or check "Automatically after" and a number of seconds if the transition should occur automatically.
  4. Select a Sound if necessary and check the Loop until next sound if it should keep repeating until the next sound is played.
  5. Click Apply to All if the transition effects should be added to every slide or Apply if the effects should be added only to the current slide.
Slide Show Options
Select Tools|Options and click the View tab to choose from several more slide show options.
[Slide Show Options dialog box]
  • Popup menu on right mouse click - Check this box if you want to be able to access the shortcut menu during a presentation.
  • Show popup menu button - Check this box to activate the menu button that appears in the bottom, left corner of the screen during a presentation.
    [menu button]
  • End with black slide - Insert a blank, black slide to the end of the presentation.

Topic 6: Master Slides

Slide Master
Change the style of all slides in the presentation by changing the properties on the Slide Master. Each Design Template has its own Slide Master that can be altered. If you create slides from scratch, a consistent style can be added to the presentation by formatting the Slide Master.
  1. Select View|Master|Slide Master from the menu bar.
    [Slide Master window]
  2. Format the master slide just as you would format a regular slide by formatting text, formatting lists, adding background patterns and effects, and setting footers.
  3. Click the Close button on the Master toolbar to quit editing the master slide and return to the presentation.
Headers and Footers
Add the date and time, slide numbers, and other footer text to the master slide from the Header and Footer window.
  1. Select View|Header and Footer... from the menu bar.
    [Header and Footer dialog box]
  2. Check the Date and time box to add this feature to the slide. Select Update automatically to always display the current date and time or click Fixed and enter a date that will not change in the text field provided.
  3. Check the Slide number box to add this feature to the slides.
  4. Click the Footer box and add other text to the footer area of the slide.
  5. Check the Don't show on title slide box to hide these features on the title slide of the presentation.
  6. Click the Notes and Handouts tab to make the same changes to notes and handouts pages.
  7. Click Apply to All to add the changes to every slide or Apply to add only to the current slide.
Slide Numbers
To add the slide numbers in a fixed position on the slide, use the Header and Footer window detailed above. The slide number can otherwise be added anywhere on the slide by placing the cursor where the slide number should appear and selecting Insert|Slide Number from the menu bar. The text of the slide number can the formatting just as regular text style is changed.
Date and Time
A date and/or time can also be added using the Header and Footer window or anywhere else on the slide. Place the cursor where the date and time should appear on the slide and select Insert|Date and Time from the menu bar. Select a format from the Available formats box and click Update automatically if this feature should always be updated to reflect the current date and time. Click OK to finish.
[Date and Time dialog box]

Topic 7: Saving & Printing

Save as Web Page
Presentations can be saved by selecting File|Save from the menu bar. However, if you want to post Power Point presentations on the Internet, you may want to save them as web pages so students and other visitors to your web site can view the presentation even if they do not have Power Point installed on their computers. Select File|Save As Web Page from the menu bar. Choose your web page directory on the network from the Look in: drop-down menu and name the file in the File name: box. Click Save to save the presentation in web format.
Page Setup
Select File|Page Setup from the menu bar to access options for printing the presentation slides. Select the format the printed slides will be used for from the Slides sized for drop-down menu or enter a specific print size using the Width and Height boxes. Select the page orientation for the slides and for other print material from the presentation in the Orientation section.
[Page Setup dialog box]
Print
Select File|Print from the menu bar to print the presentation.
[Print]
Print range - Select All to print all the slides in the presentation, Current slide to print only the current slide, or enter slide numbers in the Slides field to print only certain slides.
Copies - Enter the number of copies of each slide specified in Print range and check the Collate box if necessary.
Print What -
  • Slides prints a full-page slide on each page.
  • Handouts prints as many slides as you designate on each page.
  • Notes Page prints one slide with that slide's notes on each page
  • Outline view prints the outline of the presentation
Click OK to print.

Topic 8: Tips

Design Tips
  1. Use contrasting colors for the text and the background so the text will be easy to read.

  2. Use font size large enough to be seen from the back of the room where the presentation will be held. A font size of 24-point or larger is recommended.

  3. Use short phrases and sentences to convey your message.

  4. Use simple slide transitions. Too many different transitions will distract your audience from the subject of the presentation.

  5. Avoid cluttering the slides with too much text or graphics. Your audience should hear what you have to say and not be distracted by a busy screen.

  6. Keep text simple and easy to read by not using many different text effects such as bold, italics, underlining, larger font size for emphasis within a sentence, or a different font all on the same slide.
Presentation Basics
  1. Begin the slide show by clicking the Slide Show button on the bottom of the screen. [slide show]

  2. Move to the next slide by pressing the SPACE BAR, ENTER, PAGE DOWN, or right arrow keys or by clicking the left mouse button.

  3. Go back to the previous slide by pressing BACKSPACE, PAGE UP, or the left arrow key.

  4. To end the slideshow before it is complete press ESC on the keyboard.

  5. A pen tool is available for drawing on the screen with the mouse. Press CTRL+P or click the right mouse button at any time and a popup window will appear. Choose Pen and the pointer will change to a pen that allows you to draw freehand on the screen using the mouse. Press the E key to erase all pen strokes. Press CTRL+A to disable the pen feature and revert the pen back to a pointer arrow.

  6. If you would like to use the pen to draw on a blank screen during a presentation, press the B or W keys, or select Screen/Black Screen from the popup menu and the screen will turn black. Press B or W again or choose Next from the popup menu to return to the presentation when you are finished drawing.

  7. To hide the pointer and button from the screen press the A key.

  8. Be sure to preview the slide show using a projector if one will be used during the presentation. Words or graphics that are close to the edge of the screen may be cut off by the projector.

Office 2007 Introduction


Download document here

Powerpoint 2007 tutorial


Download document here

Monday, October 25, 2010

DOS Commands


Directory Manipulation

     MD or MKDIR  -  creates a directory
     CD or CHDIR  -  changes directory
     PROMPT  -  changes the command prompt
     TREE  -  displays the directory structure
     RD or RMDIR  -  removes a directory
     Renaming directories
     PATH  -  creates a search path


MD or MKDIR  -  creates a directory

The MD or MKDIR  command is used to create subdirectories in the root directory or other subdirectories.

Command  Syntax:     MD      DRIVE:\PATH\DIRECTORY

Example  1:     Create a subdirectory named DOCS in the root directory of C

                                    MD      C:\DOCS

Example  2:     Create a subdirectory of the DOCS subdirectory called WORK

                                    MD      C:\DOCS\WORK

Example  3:     Create a subdirectory of WORK called TEMP

                                    MD      C:\DOCS\WORK\TEMP

Example  4:     If you were already in the WORK directory (see next section re changing directory) the following would be sufficient to create the TEMP subdirectory

                                    MD      TEMP

CD or CHDIR  -  changes directory

The CD or CHDIR command is used to move from one directory to another; or to show the current directory path (i.e. the hierarchy of directories from the root directory to the one you are currently working in). The directory you are currently in is known as the current or default directory. When you move to another directory it becomes the current directory. Once your system has booted your initial current directory will normally be the root.

Command Syntax:      CD      DRIVE:\PATH
                        or         CD     


DOS uses the following ‘special’ characters to reference particular directories within the directory structure and these can also be used with the CD command.

                        \           -           the Root Directory
                        .           -           the Current Directory
                        ..          -           the Parent Directory of the current directory


Example  1:     Move to the subdirectory TEMP (assuming it exists)

                                    CD      C:\DOCS\WORK\TEMP

Example  2:     Display  the path to the current directory (i.e. Current Directory Path)

                                    CD                 

Example  3:     Move to the parent directory of the current directory

                                    CD   ..

Example  4:     Move back to the subdirectory TEMP (this example assumes you are currently in subdirectory WORK; use example 2 to check before moving)

                                    CD      TEMP

Example  5:     Move to the root directory. (This will make the root the current directory)

                                    CD   \


PROMPT  -  changes the command prompt

It is useful if you can see immediately from the command/screen prompt what directory you are currently working in (i.e. the current directory) and the path to that directory. The PROMPT command enables you to do this.

To make the command prompt show the path to the current directory, and not just the letter representing the default disk drive, type

                                    PROMPT  $P$G

Your AUTOEXEC.BAT file may already include this command line, if not it can be edited to do so. In this way a useful prompt will be set up every time you start a new session on your computer.

After typing PROMPT $P$G as indicated, move up and down through the directory structure to see how the prompt changes.


TREE  -  displays the directory structure

The TREE command enables the user to obtain a graphical view of the structure of directories and subdirectories on a disk.

Command Syntax:      TREE              DRIVE:\PATH           /SWITCH

                                    Where SWITCH is

                        F          -           Display the names of files in each directory


Example  1:     Display the structure of the DOCS directory

                                                            TREE              C:\DOCS

Example  2:     Display the directory structure and files of C

                                                TREE              C:        /F


RD or RMDIR  -  removes a directory

RMDIR or RD is used to remove a directory. This command will only work if the directory concerned is empty.

Command Syntax:      RD      DRIVE:\PATH\DIRECTORY


Example:         Remove the empty subdirectory of C:\DOCS\WORK called TEMP

                        RD      C:\DOCS\WORK\TEMP

DOS 6 introduced the DELTREE command which allows you to delete directories whether or not they are empty. (i.e. it allows you to delete all the files and subdirectories in a directory plus the directory itself with a single command.) This command should be used with care.


Renaming directories

In DOS 5 there is no single command that allows you to rename a directory. You have to use a combination of the MD, XCOPY, DEL and RD commands. This has been addressed in DOS 6 with the introduction of the MOVE command which can be used to rename directories or move files. (For DOS 5 renaming directories is simpler with DOSSHELL - see later.)


PATH  -  creates a search path

For many DOS commands (viz. external commands) there is a program file which has to be executed in order for the command to work. In the examples so far we have assumed that this is not a problem but in fact DOS has to know where on disk, i.e. in which directory, the corresponding program file is. If it cannot find the file then the command will fail.

By default DOS will only look in the current directory for this program/executable file. If it is not there then DOS has to be know the path (i.e. the hierarchy of directories from the root) to it.

This can be achieved by prepending the relevant path to the command name whenever composing a command line. However it would be better if DOS could simply be told in which directories to look for program files whenever a command name was entered. This can be achieved by using the PATH command. It enables you to specify the path to directories DOS should search, after the current directory for the program file for a command. Once this command has been issued DOS will remember these directories until the command is used again either to clear the search path or set a new search path, or until the machine is switched off.

Command Syntax:      PATH             DRIVE:\PATH

You can have multiple occurrences of DRIVE:\PATH each separated by   ;


Example  1:     Set a path to  \  (the root directory), and the DOS directory

                                    PATH C:\;C:\DOS

This instructs DOS that after it has searched the current directory for a program file, it should then search the root directory of C: and then the DOS subdirectory of the root.

This should be a minimum search path when using DOS because most of the DOS program files are usually kept in the DOS subdirectory and the root directory. It allows the DOS commands to be used, as in these notes, without prepending them with a path.

A search path containing at least these elements is usually set up in the AUTOEXEC.BAT.

Example  2:     Add the directory MEMOS on the diskette to the search path

                                    PATH             C:\;C:\DOS;A:\MEMOS


You can also use the PATH command to see what directories are currently in the search path, and to clear it.

Example  3:     Display the current search path

                                    PATH

Example  4:     Clear the search path

                                    PATH ;



File Manipulation

      DIR  -  Lists files and subdirectories
·      Wildcard Characters   ?   *
     EDIT  -  creates a new file or modifies an existing file
     COPY  -  copies a file or a group of files
     XCOPY  -  copies all files in a directory (and its subdirectories)
     DEL or ERASE  -  deletes a file or a group of files
      UNDELETE  -  undeletes files
     COPY (or XCOPY) plus DEL  -  moves files
     DOSKEY  -  recalls commands
     RENAME or REN  -  renames files
     TYPE  -  displays text files
     PRINT  - prints a text file
     COPY  -  used to create a file
     ATTRIB  -  sets file properties
     FC  -  compares two files


DIR  -  Lists files and subdirectories

This command lists the names of files and directories in the current directory, or one specified in the command line. It can also provide additional information such as the amount of free space on the disk, the dates directories were created, and the dates files were last modified and there sizes.

It is also possible use DIR to search for specific files.

Command Syntax:      DIR     DRIVE:\PATH\DIRECTORY          /SWITCHES
                                                                          FILE

                                    Where SWITCHES are

                        P          -           page through the listing one screen at a time
                        W        -           produce a wide listing
                        S          -           execute the command in subdirectories of the
                                                subject directory as well as the directory itself
                        A:x      -           list only files with attribute x
                                                where x = h (hidden), r (read only), s (system)                                               O:y      -            order the listing according to  y
                                                where y = n (name), e (extension), s (size),
                                                                d (date and time - earliest first)
                        B         -           blank out heading and summary information


Example  1:     List the contents of the root directory of the floppy disk

                                    DIR     A:\

Example  2:     Produce a wide listing of the current directory of C one page at a time

                                    DIR     C:        /P         /W

Example  3:     List every occurrence of the file AUTOEXEC.BAT in the current directory                                   and its subdirectories

                                    DIR     AUTOEXEC.BAT     /S

Example  4:     List the contents of the DOS directory in chronological order

                                    DIR     C:\DOS           /O:D

Example  5:     List only those files in the root of C which are hidden

                                    DIR     C:\       /A:H


Wildcard Characters   ?   *

A Wildcard Character is a character which has special meaning. In DOS wildcards are the  *  (the asterisk) and  ?  (the question mark ). They are usable with many DOS commands. The question mark represents any single character, and the asterisk a string of characters. Wildcards enable you to do more with the basic commands.

As examples, suppose you wanted to use the DIR command to list only the files that ended with a particular extension, or started with a particular word.


Example  1:     Display only those files in the root of C whose name ends with the .COM extension

                                    DIR     C:\   *.COM

Example  2:     Display those files in the DOS directory which start with DISK, are followed by 4 characters, and have any extension.

                                    DIR     C:\DOS\DISK????.*

You should get into the habit of using the DIR after you have executed a command (e.g. the MD or CD commands discussed above, or the COPY, DEL etc. commands below) to confirm the effects of that command.


EDIT  -  creates a new file or modifies an existing file

To create a text file in DOS you invoke the Screen Editor by using the EDIT command.

Command Syntax:      EDIT   DRIVE:\PATH\ FILE

                        FILE   must be an unformatted ASCII text file

Carry out the following steps to create your own file; this will give you a file on which to practice the other commands.

Type EDIT <return> at the DOS  prompt.
Once in the editor press the ESC key.

You should get the following screen



Then type in the bold text below, using your own name where it says your name. This text will constitute the contents of the file.

(If you make a mistake while typing use the following keys to make corrections. - The Delete and BackSpace keys to remove letters; the ¬,  ®, ­, ¯ (Arrow) keys to position the Cursor without removing letters; and the Insert key to switch between Insert and Over Write mode.)
           
            @echo off
            echo.
            echo   GOOD DAY   your name
            echo.

Once you have finished press the Alt key which, as indicated at the bottom of the screen, activates the menus.
You will see the first letters of the Menu Items at the top of the screen become illuminated. The File item should be highlighted. If not use  ¬  and  ®  to highlight it. Press the Return or Enter key to activate the File Menu.
Use  ¯  to move the Menu Bar down to Save As, and press <return> to select this option.
Type in the file name HELLO.BAT <return>.
You have now created a file called HELLO.BAT, containing the above text.
Now leave the Editor by activating the File Menu, and then selecting Exit.

The file you have just created is a simple Batch file - i.e. a file of DOS commands which will be executed, one after the other, simply by typing in the name of the file (without the .BAT extension).

To run this batch file type HELLO <return> at the DOS prompt.
The message Good Day should appear.


The Editor provides an easy method of creating a new text file. It is particularly useful for creating DOS batch files (which are special text files). If you want to modify/edit an existing text file then you simply supply the name of that file as a parameter to the command. Once in EDIT you can use a mouse, or simply the keyboard, to highlight text, cut (or copy) and paste that text, select menu items, etc. Most of the commands in EDIT are self explanatory and easy to use.

Example:         Edit the batch file you have just created.

                                    EDIT   HELLO.BAT


COPY  -  copies a file or a group of files

The COPY command enables you to make copies of files. It may be used to make a copy within a particular directory, to copy from one directory to another and to copy from one disk to another. You can use the command to copy one file by using its filename, or several files by using the DOS wildcard characters  *  and/or  ?

Command Syntax:   COPY    DRIVE1:\PATH1\ FILE1(S)    DRIVE2:\PATH2\ FILE2(S)

Example  1:     Copy one file from drive C to drive A

                                    COPY             C:\HELLO.BAT         A:

Example  2:     Make a copy of a file within the same directory. You have to give the copy a different name. e.g. GREETING.BAT

                                    COPY             A:\HELLO.BAT         A:\GREETING.BAT

Example  3:     Copy all the files in the root of A to a directory on the hard drive

                                    COPY             A:\*.*              C:\DOCS

Now use the DIR command to list the files on drive A again.


XCOPY  - copies all files in a directory (and its subdirectories)

The XCOPY command behaves in the same way as the COPY command, however it allows the copying of all the files in a directory, and also its subdirectories.

Command Syntax:

XCOPY          DRIVE1:\PATH1\DIRECTORY      DRIVE2:\PATH2       /SWITCHES
                                                      FILES

                                    Where SWITCHES are

                        S          -           copy subdirectories which contain files
                        E          -           also copy empty subdirectories (/E is used with /S)
                        D:date -           only copy files changed after a certain date


Example  1:     Copy the contents of the DOCS directory, and its subdirectories, including empty ones, to directory TEMP-DIR on A

                                    XCOPY          C:\DOCS        A:\TEMP-DIR            /S         /E

DOS will allow you to create the TEMP-DIR if it does not already exist.


Example  2:     Copy all the files in the root directory of C modified on or after 1/1/96 to A

                                    XCOPY          C:\*.*              A:        /D:1/1/96


Example  3:     Copy all the files in the A drive's TEMP-DIR directory to a directory with the same name on the C drive

                                    XCOPY          A:\TEMP-DIR            C:\TEMP-DIR


DEL or ERASE  -  deletes a file or a group of files

The DEL or ERASE commands perform the same operation; you can use either.


Command Syntax:      DEL    DRIVE:\PATH\FILE(S)        /P

The P switch causes DOS to prompt the user with the name of the file to be deleted, to confirm that this is really his intention, before actually carrying out the deletion.
If the P switch is omitted then the deletion is carried out silently.


Example  1:     Prompt the user with the name of each file in the current directory that has the extension .BAK, and ask him to confirm whether it should be deleted

                                    DEL    *.BAK                        /P

Example  2:     Delete the file HELLO.BAT from the DOCS directory

                                    DEL    C:\DOCS\HELLO.BAT

Example  3:     Delete all files in the root of A

                                    DEL    A:\*.*

Whenever the wildcard character is used in this manner, the user is always reminded that all files in the directory will be deleted, and asked to confirm Yes or No.


Warning

NEVER delete the file COMMAND.COM file since it is the file which enables DOS  commands to run.

Be very careful when using wildcard characters with the DEL/ERASE command, as you will not be asked to confirm the deletion of individual files when using it (unless you use the /P switch) and so may delete a file which you really need to keep. You should always use DIR to list the contents of the directory before you start deleting using wildcards, to see exactly what files will be affected.





UNDELETE  -  undeletes files

The UNDELETE command, which was not available before DOS 5, attempts to undo the use of DEL. It provides a degree of protection against accidental deletion of files. UNDELETE relies on the fact that DELeting a file does not physically remove it but simply marks the area of disk concerned as available for reuse. Thus once you have deleted a file you will not see it if, for example, you execute the DIR command but providing it has not been subsequently overwritten it should be recoverable using UNDELETE.

Command Syntax:      UNDELETE   DRIVE:\PATH\FILE(S)        /SWITCHES

                                    Where SWITCHES are

                        LIST    -           list all files deleted which have not been subsequently
                                                overwritten
                        ALL    -           undelete all deleted files without prompting the user


Example  1:     Undelete the file called HELLO.BAT which has been deleted from the A drive

                                    UNDELETE               A:\HELLO.BAT

If recoverable the dialogue will be continue something like this -

                        Directory:  A:\
                        File Specifications: HELLO.BAT

                              Deletion-tracking file not found.

                              MS-DOS directory contains    1 deleted files.
                              Of those,    1 files may be recovered.

                        Using the MS-DOS directory method.

                              ?ELLO   BAT    49   1/1/96   16:23    ...A  Undelete (Y/N)?    Y
                              Please type the first character for ?ELLO  .BAT:                        H

                        File successfully undeleted.


Example  2:     Undelete all files that are recoverable in the current directory

                                    UNDELETE




COPY (or XCOPY) plus DEL  -  moves files

DOS 5 does not have a specific command for moving files (DOS 6 does) but this can be achieved by using the COPY (or XCOPY) and DEL commands. i.e. Making copies and then deleting the originals.

Example:         Move all the document files in the root directory of drive C to drive A

                                    COPY C:\*.DOC        A:
                                    DEL    C:\*.DOC


RENAME or REN  -  renames files

The RENAME or REN command is used to rename a file or a group of files. The file contents and the location of the renamed files remains the same.

Command Syntax:      REN    DRIVE:\PATH\ FILE1          FILE2


Example  1:     Rename a single file

                                    REN    C:\HELLO.BAT         MESSAGE.BAT

Example  2:     Rename a group of files to have a common file extension

                                    REN    A:\TEMP-DIR\*.BAT            *.BAK


DOSKEY  - recalls commands

The DOSKEY command is only available in DOS 5 and 6. Once the command is issued and the DOSKEY program installed it saves subsequent command lines typed in at the keyboard in an area, or buffer, of RAM; this in effect means that it 'remembers' previous command lines. The user can recall these lines with a few simple keysrokes instead of having to type them in again.

To start DOSKEY type
                                                DOSKEY       <return>

From this point on the command lines you input will be remembered.

You can then use the  ­ and  ¯ (or F8 ) keys to view the command lines and <return> to execute your choice.

You can edit a command line you have recalled by using the ¬ and ® keys to position yourself within the line and using the Insert key to switch between OverWriting and Inserting text before typing in your changes. You can also clear the current command line by pressing the ESC key.

Additionally

F7        Displays a numbered list of the commands DOSKEY has stored

F9        Allows you to selects a command by number

Alt+F7            Clears the buffer


TYPE  -  displays text files

The TYPE command is used to display the content of a text file on screen. (If the screen displays  garbled characters, with regular beeping  sounds, then it is likely that the file is a non text file.) TYPE merely displays a file; it does not allow you to edit/change it.

Command Syntax:      TYPE              DRIVE:\PATH\ FILE

Example:         Display the contents of a file called MESSAGE.BAT

                                    TYPE              MESSAGE.BAT


PRINT  - prints a text file

The PRINT command allows you to obtain a print-out of a text file. Printers are slow devices and are often shared by more than one computer. Obviously you do not want to have to wait until your file is physically printed before being able to continue using your machine. Therefore when you execute the PRINT command your file is added to a print queue - this is a list, stored in memory, of files waiting to be printed. This ‘queuing’ of a file by PRINT is very quick; much quicker than the actual printing of the file. Once the PRINT command has been executed DOS is free to execute other commands even though the relevant file might not yet have been printed. You can continue working and the file will be printed, in the background, when it reaches the top of the queue.

Command Syntax:      PRINT                        /SWITCHES               DRIVE:\PATH\ FILE

                                    Where SWITCHES are

                        T          -           Terminate printing i.e. remove all files from                                                               the print queue
                        C         -           Cancel printing of the specified file


Example  1:     Print two text files

                                    PRINT                   A:\TEMP-DIR\HELLO.BAK       MESSAGE.BAT


Example  2:     List the files in the Print Queue

                                    PRINT

Example  3:     Cancel the printing of MESSAGE.BAT

                                    PRINT                        /C                    MESSAGE.BAT

Example 4:      Empty the print queue

                                    PRINT                        /T


COPY   -  used to create a file

The COPY command can be used as a quick method of creating a small text file. The command line you use instructs DOS to copy all subsequent screen output (represented by CON:) to the file you specify, until you terminate this action and close the file by pressing Ctrl+Z (i.e. pressing the Ctrl key and before releasing it pressing the Z key) or the F6 function key.

This method of creating a file is very crude. Unlike EDIT or other editors it does not allow you to correct your mistakes as you are creating the file.

Command Syntax:      COPY             CON:              DRIVE:\PATH\ FILE

The best way to demonstrate this use of COPY is with an example.

Type in the following. Every thing you type after the COPY line will be stored in LONG-MSG.BAT until you press Ctrl+Z or F6. If you make a mistake while typing you can abort what you have done and return to the DOS prompt by pressing Ctrl+C (i.e. pressing the Ctrl and C keys in the manner indicated for Ctrl+Z above). Use your own name where it says your name.

                                    COPY             CON:              LONG-MSG.BAT
                                    @echo off
                                    echo.
                                    echo    GOOD DAY  your name
                                    echo.
                                    pause
                                    echo    YOU ARE USING
                                    ver

            Then type Ctrl+Z or F6


Now run this batch file which you have just created.


ATTRIB  -  sets file properties

ATTRIB enables you to assign files the properties, or attributes, of being Read Only (R), Hidden (H) and System (S) files. Each of these attributes (R, H, and S)  is assigned with  +  and cleared with  -

Command Syntax:      ATTRIB      +   attribute      DRIVE:\PATH\FILE(S)      /SWITCH
                                                         -   attribute

                                    Where attribute may be

R         -           read only file attribute   (file cannot be deleted or edited but can be listed with DIR and viewed and copied)
S          -           system file attribute   (file cannot be deleted or copied, nor is it visible with the DIR command but it can be edited)
H         -           hidden file attribute   (same properties as S)

A file may have more than one attribute

                                    SWITCH is

                        S          -           apply the command in all subdirectories of the path specified


Example  1:     Protect the MESSAGE.BAT file from being deleted or changed - i.e. making it Read Only

                                    ATTRIB          +R       MESSAGE.BAT

Try deleting or editing the file once you have added this attribute.

Example  2:     Remove the Read Only attribute from a file

                                    ATTRIB          -R        MESSAGE.BAT

Example  3:     Hide all the batch files in the current directory

                                    ATTRIB          +H       *.BAT

Use DIR to check the files have been hidden.

Example  4:     Make the files visible to DIR again

                                    ATTRIB          +H       *.BAT


Note, that although System and Hidden files cannot be seen using DIR, it is possible to find out what files have these attributes (and their names if you have forgotten them) by using   ATTRIB   on its own to view the attributes of all files in your directory.


FC  -  compares two files

This command can be useful for displaying the differences between two text files e.g. The current version of a file and an older version.

Command Syntax:  FC   /SWITCH   DRIVE1:\PATH1\FILE1    DRIVE2:\PATH2\FILE2

                                    SWITCH is
           
                        N         -           number the lines of the files

Example:
                                    FC       /N        MESSAGE.BAT        LONG-MSG.BAT



Redirection, Filters, Pipes

           Redirecting input and output  ( <, >, >> )
           Filters  e.g.  MORE,  SORT
           The Command Line Pipe  ( | )


Redirecting input and output  ( <, >, >> )

DOS assumes that the input to a command comes from the keyboard, and output goes to the monitor. However this flow can be redirected. Input can be read from a file rather than the keyboard, and output can be sent to a file or a printer instead of the monitor.

To read information from a file the  <  (less-than sign) must be used in the command line. To send information to a file or printer the  >  (greater-than sign) must be used.

Example  1:     Save the directory listing of C to a file

                                    DIR     C:        >          DIR-LIST      

If DIR-LIST already exist then its contents will be over written. Otherwise it is created containing the output of DIR.


The  >>  (double greater-than sign) is used to append information to an existing file rather than overwriting it.

Example  2:     Append a wide listing of the root of A and its subdirectories to DIR-LIST

                                    DIR     A: \      /W       /S         >>        DIR-LIST


To display the contents of DIR-LIST you could use TYPE. However there may too much information to fit onto one screen. Instead you can use the  <  redirector to read the contents of DIR-LIST into a DOS command which will display the information one page/screen at a time.

The command is MORE

Example  3:     Display the contents of DIR-LIST one screen at a time

                                    MORE                        <          DIR-LIST


Filters  e.g.  MORE,  SORT

A filter processes in some way the information input to it.

The MORE command is a filter that displays data input to it one screen at a time. As demonstrated in the last example it is often used with the  <  redirector.

Command Syntax:      MORE                        <          DRIVE:\PATH\ FILE

It is also commonly used with another redirector, the command line pipe (see next section).

Another filter is the SORT command which sorts a text file input to it into alphabetical order.

Example:
                                    SORT              <          DIR-LIST


The Command Line Pipe  ( | )

The pipe makes the output of one command become the input to another, allowing you to combine commands within a command line. To pipe commands place the  |  (broken vertical bar key on the keyboard) between the commands concerned. This causes all output generated on the left hand side of the bar to be sent to the right hand side for processing.

Command Syntax:      command-name   |   command-name

Example  1:     Display the output of the DIR command one screen at a time

                                                DIR   |   MORE


Pipes can also be used with the other redirection operators.

Example  2:     Pipe a listing of the files in the root of C to the SORT command and store the output of SORT in a file called ORDERED.LST

                        DIR     C:\       |           SORT              >          ORDERED.LST

Additionally you can have more then one pipe within a command line.

Example  3:
                        DIR     C:        |           SORT              |           MORE



Disk Manipulation

     FORMAT  -  formats a disk
     UNFORMAT  -  unformats a disk
     DISKCOPY  -  makes a copy of a diskette

FORMAT  -  formats a disk

A disk must be formatted for a particular operating system before it can be read from or written to by that operating system. DOS formatting creates a new root directory and file allocation table on the disk, it also destroys anything already on the disk. Therefore do not format a disk until you are sure there is nothing on the disk that you want to preserve.

You will not normally need to format a disk a second time (i.e. after your initial format of a blank disk). If you do reformat a disk, all existing data on it will be destroyed.

Command Syntax:      FORMAT       DRIVE           /SWITCHES

                                    Where SWITCHES are

                        S          -           create a DOS system/boot disk -  i.e. Format the disk and                                                    automatically install the DOS system files (IO.SYS,                                                                         MSDOS.SYS and COMMAND.COM) on it

                        F:x       -           where x is the floppy disk size
                                                i.e. one of 160, 180, 320, 360, 720, 1.2, 1.44, 2.88

The F switch is most commonly needed if formatting a DD (Double Density) disk in a HD (High Density) drive. Specifically, formatting a 3.5” 720 KB disk in a 3.5” 1.44 MB drive, e.g.

                        FORMAT       A:        /F:720

If you use the FORMAT command without switches on a 3.5” disk in a HD (1.44 MB) drive, DOS will attempt to format that disk to 1.44 MB even if it is a DD disk. This will result in a disk which is unreadable on DD drive machines. By using the F:720 switch the disk will be readable on both types of machine.


                        Other SWITCHES

            T:t        -           where t is the number of tracks per disk side
            N:s       -           where s is the number of sectors per track

Together these provide an alternative to the F:x switch for specifying the size of the disk being formatted, e.g.

                        FORMAT       A:        /T:80    /N:9
           
can be used to perform the same format as using F:720 above.


Remember -     a machine with a HD drive can read and format both HD and DD disks.
                        a machine with a DD drive can read and format only DD disks.


Examples using the FORMAT command -


Example  1:     Format a HD floppy disk in a HD drive

                                    FORMAT       A:

Example  2:     Format a disk as a DOS System disk

                                    FORMAT       A:        /S

Example  3:     Format a 3.5” DD 720 KB disk in a 3.5” HD 1.44 MB drive

                                    FORMAT       A:        /F:720
                                                                        /T:80    /N:9


SYS  -  makes a disk a System disk

If you already have a formatted disk which you want to be able to use as a System (or Boot) disk, you can install the 3 essential system files to it using this command.

Example:         Make the diskette in drive A a system disk by installing the system files on the hard disk to it

                                    SYS                 C:        A:

Note - that to make a disk a system disk you must either use the /S switch with the FORMAT command, or use the SYS command. Simply copying the system from one disk to another does not create a system disk.


UNFORMAT  -  unformats a disk

The UNFORMAT command is a limited safe guard introduced in DOS 5 to recover data from a disk which have been lost as a result of performing a FORMAT.

You should not really need to use this command if you are careful. It is good practice always to use the DIR command on a disk to see if it has already been used before trying to format it. If DIR displays information about files and directories or disk space then the disk is already DOS formatted. (However this simple test does not let you know if the disk has already been formatted but for a Macintosh computer.)

Note - Unformatting a disk only works if the UNFORMAT command is used before putting any new files on it.


Command Syntax:      UNFORMAT DRIVE:          /SWITCH

                                    Where SWITCH is

                        TEST   -           display only, non committal of data.
                                                This shows how UNFORMAT would attempt to
                                                recreate the information on the disk, but does not
                                                actually unformat the disk and do so.


Example  1:     Test to see how a disk would be recovered from a format

                                    UNFORMAT A:        /TEST

Example  2:     Actually recover from use of the FORMAT command

                                    UNFORMAT A:


DISKCOPY  -  makes a copy of a diskette

DISKCOPY makes an exact copy of one floppy disk (the source disk) on another (the destination or target disk). The original contents of the destination disk are destroyed. If the destination disk is unformatted DISKCOPY will format it. The disks should be of the same type (e.g. two 1.44 MB HD disks), however if the destination disk is of a different type from the source disk DISKCOPY will try  to format it to match the source diskette but this may not be possible.

Note - The XCOPY command (see later) is the best command to use when copying files between different types of disk (e.g. a 720 KB DD disk and a 1.44 MB HD disk), or when you want to preserves the original contents of the destination disk.


Command Syntax:      DISKCOPY               DRIVE1:                    DRIVE2:
                                                                        (source disk)                (destination disk)


Example  1:     Make a copy of a diskette using two identical drives. (The copy will be from the diskette in drive A to the diskette in drive B)

                                    DISKCOPY   A:        B:

If you only have one floppy disk drive, which is normal, you can still make an exact copy of a diskette. You specify drive A twice in the command line, start the copy with the source diskette in that drive, and swap it with the target diskette as directed during the copying operation until the copy is complete.

Example  2:     Make a copy of a diskette using one drive

                                    DISKCOPY   A:        A: