superman The shell must support the following internal commands: i. cd <directory> - Change the current default directory to <directory>. If the <directory> argument is not present, report the current directory. If the directory does not exist an appropriate error should be reported.This command should also change the PWD environment variable. ii. clr - Clear the screen. iii. dir <directory> - List the contents of directory <directory>. iv. environ - List all the environment strings. v. echo <comment> - Display <comment> on the display followed by a new line (multiple spaces/tabs may be reduced to a single space). vi. help - Display the user manual using the more filter. vii. pause - Pause operation of the shell until 'Enter' is pressed. viii. quit - Quit the shell. ix. The shell environment should contain shell=<pathname>/myshell where <pathname>/myshell is the full path for the shell executable (not a hardwired path back to your directory, but the one from which it was executed).
xterm At least put some effort man, this is very simple. http://download.oracle.com/javase/6/docs/api/java/io/File.html Please refer to the forum etiquette for information on how to ask questions.
superman i know that it is very simple but i don't have time to write code at the moment and i have to submit it today so i need help
Joe We don't solve your homework. We don't solve your exercises. We can give you help at best. But you have to show us will to work. For the record I'm working on something similar coded in C. Take a look at it, it might help you.