Date: Tue, 05 Nov 1996 00:33:43 GMT
Server: NCSA/1.5
Content-type: text/html
Last-modified: Wed, 28 Aug 1996 06:06:35 GMT
Content-length: 4144
CS 302: Tsao: Disk Organization (Using Subdirectories)
CS 302 Sections 33 & 43: Disk Organization (Using Subdirectories)
In order to keep your disk space organized, you may want to use
subdirectories. In your U: drive, you already have some
subdirectories, namely windows and email. To create new
subdirectories, you should use the File Manager:
- Start the File Manager by double-clicking on its icon (in
the Main program group).
- Only one window needs to be used in the File Manager. In this
window, select the U: drive from the drive list, and choose the root
directory ("u:\") in the directory tree. The file list will contain
a list of all of the files and subdirectories in the root directory.
- Now, click on the File menu and select the Create
Directory... option. (Click here to view what
the File Manager will look like.)
- This will cause a dialog to appear. In this dialog, type in the name of
the subdirectory you want to create. (A subdirectory's name follows the same
constraints as a file name. In general, the extension is not used, thus
allowing 8 characters.) If you want to organize your programs, a good choice
for the subdirectory's name is progXXXX, where
XXXX is the number of the program. (For example,
prog0001, prog0001, etc.)
- In order to use this subdirectory, you can select it when creating a new
project. For example, suppose a subdirectory prog0003 was made. When
creating the project for Program #3, use this subdirectory when filling in the
Project Path and Name: field:

Your source code file, object module, and executable file will automatically
be placed within the prog0003 subdirectory.
If you already have made a program but want to move it to a newly created
subdirectory, use should use the File Manager to move the files:
- First, create a new subdirectory using the first 3 steps above.
- Next, in the File Manager, open up two windows. The top window
should be set up to be the source directory (i.e., the drive and directory
where the files to be moved currently reside), and the bottom window should
be set to the newly created subdirectory (also called the destination
directory).
- Select all of the files that you want to move from the file list in the
source directory. Drag the files from the source directory window's file
list to the destination directory window's file list. (Note: if the source
and destination drives are the same, this will move the files. If
the drives are different, the files will be copied.)
For example, suppose you wanted to move a project named prog003 from
the root directory to the subdirectory prog0003. All of the files
that need to be moved have file names starting with prog003, but have
different extensions. The files associated with a project have the extensions:
- [.cpp] - the source code file
- [.h] - the header file
- [.obj] - the object module
- [.csm] - the precompiled headers
- [.ide] - the project file
- [.exe] - the executable program
- [.rc] - resource file
- [.res] - resource script
- [.~de] - a backup of the project file
- [.obr] - other stuff
- [.dsw] - other stuff
- [.rws] - other stuff
Not all of these files may exist. It depends upon how far you have gotten
in writing a program, and what kind of program you are writing. (In general,
the only files which need to be moved are the source code file, the
header file (if it exists), and the project file. The other files may be
deleted.)
Back to: CS 302 Home
Page
Back to: CS 302: Tsao