Prof. Janet Brown-Sederberg
Computer Technology &
Information Management
Technology Building Room 105
508.588.9100 x 1630

jbrown-sederberg@massasoit.mass.edu

Software Management and Maintenance - Spring 2008

 

Class Notes

Topic Notes
Chapter 1
Command Action
cd directory name changes to named directory (must be a directory within the current directory
cd\ changes directory to root directory
cd.. changes directory to directory one step up in hierarchy
dir lists contents of the current directory
dir/p lists contents of the current directory, stops scroll off screen
edit turns on dos editor
exit exits DOS
java filename runs file of filename
javac filename.java compiles file of filename.java
mkdir directoryname creates a new directory of directory name
rmdir directoryname remove directory of directory name
set displays the environmental variables
path displays the path
classpath displays the class path

NB: The following would all be on one line

set CLASSPATH=
%CLASSPATH%;
C:\directoryname;

Explanation of the above:

set --> command to establish an environmental variable

CLASSPATH=%CLASSPATH%; --> retains the old class path

C:\directoryname; --> adds a new class path, if there are additional path they are to delimited by a ";"
eg. C:\directoryname; C:\directoryname; C:\directoryname;

to set the class path where directoryname is the name of the directory where the classes will be saved (this is the path to the directory where the classes will be stored - therefore the path can be any number of levels deep - each level to be indicated by a "\" eg. C:\level1\level2\level3)

This presumes that you have or will create the directories noted in the class path. Creating directories is done through the mkdir command above.

Some On-Line Resources:

http://www.computerhope.com/msdos.htm
http://www.computerhope.com/dostop10.htm

 

 

Chapter 2
Chapter 3
Chapter 4
Review/Labs
Chapter 5
Chapter 6
Chapter 7
Chapter 8
Chapter 9
Chapter 10
Chapter 11
Review/Labs
Chapter 12
 

Any fool can know. The point is to understand. - Albert Einstein