go to previous page   go to home page   go to next page

Answer:

Your own system will likely be different, especially if you are using a school computer. There are many ways to do these things.


Command Interpreter Window

Command Prompt

Windows 7

After you start the command prompt window you can enter commands as if you were running an old-time DOS computer. You should see something like the picture. The line of text

 C:\Users\TEMP>

is a prompt. You are expected to enter commands to the system after it. The prompt shows that the command interpreter is automatically expecting commands to apply to files in the folder C:\Users\TEMP. This is called the default folder.

Depending on how your computer has been set up, you may see a prompt something like this:

 C:\WINNT\System32>

This prompt means that the command interpreter is automatically expecting to use files in the folder C:\WINNT\System32. DO NOT use the C:\WINNT\System32 folder.

It doesn't matter where you start out because you can change the default directory using the CD command. (This is the Change Directory command.) For now, let us create a Java program in the folder (directory):

C:\Users\TEMP

If you need to get to this folder type the following commands:

C:
CD \Users\TEMP

Type these commands after whatever command prompt you see. The prompt changes to show the current default directory. The first command C: switches to the C: disk (which is the hard disk of the system if you have only one). The second command makes C:\Users\TEMP the default directory (default folder).

Windows 8

After you start the command prompt window you can enter commands as if you were running an old-time DOS computer. You should see something like the picture. The line of text similar to this

 C:\Users\YourName>

is a prompt. Of course, your login name will replace "YourName". You are expected to enter commands to the system after it. The prompt shows that the command interpreter is automatically expecting commands to apply to files in the folder C:\Users\YourName. This is called the default folder.

For now, let us create a Java program in the folder (directory):

C:\Users\YourName\JavaSource>

To create this directory do this:

C:\Users\YourName\>MKDIR JavaSource

This creates the subdirectory (folder) JavaSource

However, the default directory has not changed. To change the default directory to JavaSource do this:

C:\Users\YourName\>CD JavaSource
C:\Users\YourName\JavaSource>DIR

The first command CD switches to the JavaSource subdirectory. The second command makes DIR lists the contents of that directory (which should be empty.)


QUESTION 10:

Can all of this be done using "File Explorer" from the desktop.