Question
Write a program in C which functions as a DOS command interpreter. DOS uses the commands cd, dir, type, del, ren, and copy to do
Write a program in C which functions as a DOS command interpreter. DOS uses the commands cd, dir, type, del, ren, and copy to do the same functions as the UNIX commands cd, ls, cat, rm, mv, and cp. Your program loops continuously, allowing the user to type in DOS commands, which are stored in the variablescommand, arg1 and arg2. The command should be considered by a case statement, which executes an appropriate UNIX command, depending on which DOS command has been given. The program should echo the following instruction to the user: Type Ctrl-C to exit.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started