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:

  1. Start the File Manager by double-clicking on its icon (in the Main program group).
  2. 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.
  3. Now, click on the File menu and select the Create Directory... option. (Click here to view what the File Manager will look like.)
  4. 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.)
  5. 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:

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:

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