Installing and Using m4 with PCSpim in Windows 2k or XP

m4 is a command line tool. To use m4 in Microsoft Windows you will need to install it then tell the windows command prompt where the binary files are located. You will also need to know how to navigate in the text shell.

Installation

Use

Some useful text shell commands

Command

Description

drive_letter: Change current drive. You will likely use c:, i: and h:
mkdir new_directory_name Make a new directory. You can include the drive and path if you like, but all folders that do not exist will be silently created, so watch out:
C:\Workarea> mkdir blar
C:\WorkArea> mkdir blar\subblar 
C:\WorkArea> mkdir c:\blar\subblar\subsubblar
rmdir directory_name Remove the named directory
cd path Change current directory. In the Windows shell backslashes, \, are preferred to unix forward slashes, /. Eg:
C:\>cd Workarea
C:\Workarea>cd \
C:\>cd Workarea\blar\subblar
C:\Workarea\blar\subblar>_

edit file

Calls up a simple text editor with the named file.
Use the File menu to save and exit.
Navigate with the mouse and arrow keys.

del file

Deletes the named file.

dir [directory]

Lists files (and directories) in the current [or named] directory.

copy file1 file2

Copies the named file.
C:\WorkArea> copy template.asm myfile.asm 
C:\WorkArea> copy myfile.asm I:\myfile.asm 
(This last command copied the file my networked I: drive.)

rename exisiting-filename new-filename

Changes the name of file to the new name specified.
C:\WorkArea> rename myfile.asm lab3.asm 

type file

Displays the named file on the screen.

more file_name Takes text and displays it to the screen in pages.
C:\WorkArea> type file | more

This page last modified:
Accessed     times.

CS Dept Home Page
CS Dept Class Files
CS115 Lab Files

Copyright: Department of Computer Science, University of Regina.