TinyShell is a basic shell written in C++ programming language. The way it works is similar in "PowerShell", but simpler. There are some basic commands such as starting, pausing or ending a process, executing *.bat or *.exe files, etc.
- Research the process management APIs in Windows
- Understand how to set and how shell works
- Trần Trọng Hiệp
- Tạ Hữu Bình
- Lê Huy Hoàng
- Võ Thục Khánh Huyền
Shell must wait for the process to finish
Syntax:
>countdown back
Shell and process excute in parallel
Sytax:
>countdown fore
Print out list of the processes (process Id, Cmd name, status)
Syntax:
>list
Stop an running process
Syntax:
>stop id_Process
Resume running paused process
Syntax:
>resume id_Process
Kill a process (maybe running or stopping)
Syntax:
>kill id_Process
If id = -1, kill all the processes
Run *.exe file, add foreground or background mode
Syntax:
>path_of*.exe mode
Example:
>C:\Users\Example.exe fore
Read *.bat file and run list of command lines
Syntax:
>path_of*.bat
Display the value of the user environment variable called
Syntax:
>env name
Exmaple:
>env path
Note: If name = NULL, shell will display the list of the user variables with their values.
Add an user environment variable
Syntax:
>addenv a val
- a and val is the name and value of variable you want to add.
Delete an user environment variable
Syntax:
>delenv a
- a is the name of variable you want to delete.
Change the parent directory to the current directory
Syntax:
>cd ..
Change the parent directory to the specified path
Syntax:
>cd path
Display the files and folders in parent directory
Syntax:
>dir
`Display the current date - time - clock
Syntax:
>date
>time
>clock
Open the countdown clock or notepad in foreground or background mode
Syntax:
>countdown mode
>notepad mode
Example:
>countdown fore
Clear the screen of tinyshell
Syntax:
>cls
Exit tinyshell
Syntax:
>exit