A Simple Shell
Due 2/20, 11:59 p.m.
EMAIL: abdollah@ccsu.edu
Starting with the zip file. Unzip it first and design and implement a simple, interactive shell program that prompt the user for a command, parser the command (you do not need to write a parser!), and then execute it. The commands for the first project is:
To make the file read only.
To copy fileA into fileB.
To delete the file.
The listing of the directory name is displayed. In case of just dir, the list of the items in the current directory should show up.
The shell should execute the class Name.class. The java file Name.java is the main method (i.e. the method main is declared in this class).
Makes a directory named name.
Displays the current date.
Displays the current time.
displays the Notepad editor on the screen.
Renames fileA to fileB.
Removes the directory named name.
Note that in most of these commands the user types a path and a name. For example if the user types:
dir C:\windows
The files and the directories of the directory windows must show up.