Skip to content

karthigaav/Java_Shell_Program

Repository files navigation

Java_Shell_Program(Jan - Feb 2015)

Project Introduction:

This is a interactive shell application implemented using Java language. The accomplishment is to provide a user a command promt and prompt the user for a operating system commands such as: attrib, copy, delete, dir, execute, main, mkdir, date, time, ediit, rename, rmdir.


Implementation Of Each Class:
  • Attrib.java - This class has a method that is implemented to make a file read only.
  • Copy.java - the command copy fileA fileB will copy fileA to fileB.
  • Delete.java - This is implemented to delete a file.
  • Dir.java - This is implement to list the directory name that is displayed. In case of just dir, the list of the items in the current directory should show up.
  • execute.java - This class is implemented to run the main class as a command through this execute class.
  • mkdir name - mkdir.java - This class is implemented to create a directory.
  • MyDate.java - This class is for displaying the current time.
  • Notepad.java - This is a edit class that displays a notepad editor on the screen
  • Rename.java - Rename fileA to fileB.
  • Rmdir.java- This class is to remove the directory that is given as a input in the command prompt.
  • main.java - This class will have all the other classes has objects on its main method.

NOTE:

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.

Software Requirements:

Used Eclipse Editor for Coding and testing.

System Requirements:

I have used Windows Operating system but this Application can be used in MAC, Linux too.

Programming Language:

core Java & Advance Java Libraries.

How to execute this project:

dowload all the .java files and put all the file into a zip file. Then import this folder to a Eclipse IDE editor and then execute the Execute.java file first. finaly, enter the command in the command prompt as assisted above.

Conclusion:

This programming implementation directly interacts with kernel level of the operating and complete each task.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages