Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

The Database Management Systems

Authors: Patricia Ward, George A Dafoulas

1st Edition

ISBN: 1844804526, 978-1844804528

More Books

Students also viewed these Databases questions

Question

=+j Describe an effective crisis management program.

Answered: 1 week ago