DOS Windows, Text Editors, blah blah.
Useful DOS Stuff
-
cd _directory_ - Change to a particular directory.
-
dir - Displays the contents of the current
directory.
-
dir /od - Display contents sorted by date (most
recent at bottom.)
-
dir /ad - Display any directories within the
current directory.
-
cls - Clear the screen.
- up arrow, down arrow - Scroll through the
list of commands you've entered.
- ctrl-C - (hold down Ctrl key and press "C" at the same time) Stop
a program from running. For example, if you are in an
infinite loop.
Editing with Notepad
- Notepad is annoying to use; we are looking for a better
replacement.
- Until then:
- Enter
notepad at a DOS prompt (for a new
file), or notepad _file-name_ to edit a file that already
exists.
- For example:
notepad program1.pl
- Edit your file.
- If the file already has a name (that is, it has already been
saved once), you can just do
ctrl-S to save it as the
same name.
- If you are saving for the first time:
- Pull down the menu
file and then save.
- Navigate to the directory you want to save to.
- Under
Save as type select all files.
- Enter the filename with a
.pl at the end.
- Save it.