Question: CIT 3323 System Administration I Homework # Write down a batch program (dosutil.bat) which will take any number of command- line arguments to perform the
CIT 3323 System Administration I Homework # Write down a batch program (dosutil.bat) which will take any number of command- line arguments to perform the below command prompt operations one after another. The command-line arguments and their corresponding DOS operations are defined below. If there is no command-line argument entered, your program should display a warning message and end. Make sure that your program is capable to process an arbitrary number of command-line arguments. Your program should not close the command prompt window when it ends
Command-Line Argument------------------------------- Command Prompt Operation -ti--------------------------------------------------------------- time /t -da--------------------------------------------------------------- date /t -c------------------------------------------------------------------ cls -ip------------------------------------------------------------------ ipconfig -d -----------------------------------------------------------------------dir -p ---------------------------------------------------------------------path -v------------------------------------------------------------------------ ver -t filename----------------------------------------------------------- type filename -m directoryname--------------------------------------------- md directoryname
Examples C:\>dosutil d ti da ip v C:\>dosutil C:\>dosutil d m CIT3323 d C:\>dosutil d t dosutil.bat m CIT3323 d
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
