Structured Programming   «Prev 

Create Windows Directory[Java] - Exercise

Working from the command prompt

Create a directory (Windows)

Objective: Create a directory for your programs.


This exercise is not scored. It is an opportunity for you to check your understanding of the material covered in the preceding lesson. When you are finished, click the Submit button to receive credit for having completed it.


Before you begin writing programs you need a place to keep your work. In this exercise you will create a directory on your file system for just that purpose.


  1. Open a command prompt window.
  2. Create a directory named progfun. You can use the cd and md commands to place this directory wherever you like on your file system, but the following instructions assume that you are creating this directory as a subdirectory of C:\. Here's how you might create the progfun directory:
    md C:\progfun
  3. Use the cd command to change your current directory to the progfun directory created in the previous step.
    Here is an example:
    cd C:\progfun

  4. Use the dir command to display the contents of progfun.