CPythonist

SECOND-2.0 DOCUMENTATION

Jump to...

CD CLS COPY DATE ECHO EXIT HELP MKDIR RMDIR SECOND SHUTDOWN TIME

CD

Changes the current working directory.
Full path of the desired directory to be used must be inputted after the CD command is activated.
If path exists, current working directory is changed.
Else process is terminated.

CLS

This command clears the screen, i.e., the text inputted and outputted text are erased.

COPY

This command allows the user to copy any file or directory from a location to another.
Once COPY command is activated, input file/directory must be given. The program checks if the input file/directory exists.
If it exists, then output destination is to be given. If output directory is also exists, then command is carried out, provided permissions are available for read and write, and other factors. If not, process is terminated.

DATE

DATE gives the current date set on the computer.

ECHO

In the input given, the charaters present behind the ECHO command without the space immediately following the command is outputted to the standard output stream.

EXIT

Exits the program.

HELP

Ouputs the help menu for Second.

MKDIR

This command allows the user to create a new folder.
After MKDIR command is activated, directory in which new folder has to created must be inputted.
If the directory exists, name of the new directory must be inputted, which is checked for illegal characters.
If these two checks are passed, the program creates a new folder, provided permission and other factors are available for read and write processes.

RMDIR

Allows deletion of a directory from a location.
After RMDIR command is activated, the full path of the directory must be specified.
Directory will be removed if the directory exits and permissions are available to remove the directory, else process is terminated.

SECOND

Displays copyright and compatibilty information.

SHUTDOWN

SHUTDOWN command allows the user to shutdown the computer (with fast startup enabled).

TIME

Displays time according to the format:
Time now is: hh : mm : ss microsecond