Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create a Windows batch file. The batch file will contain the following: 1. Remark statements that: a. Your full name b. Course Number C. Semester

image text in transcribed

Create a Windows batch file. The batch file will contain the following: 1. Remark statements that: a. Your full name b. Course Number C. Semester d. Date project submitted 2. Ask the user interactively: a. Boot drive letter of the computer b. Computer name C. Computer Model 3. Check to see if the boot drive in #2 exists with the folder cfrs500: a. If yes cd BootDrive cfrs500 b. If no, make the directory BootDrive cfrs500 4. Check to see if casefile.txt exists: a. If yes goto the label DONE b. Tell the user that data already exists in the cfrs500 folder and exit the program 5. Output the variables in #2 to the file BootDrive cfrs500\casefile.txt Execute the correct commands redirecting output to command-name.txt in BootDrive cfrs500 in order to get the output below: a. Environment variable b. System information C. Mac address (You cannot use the ipconfig command) d. DNS table e. Export the system.evtx file to BootDrive cfrs500\sys.evtx 7. Use a FOR loop to: a. Execute hostname and send the output to a variable host b. Output the variable host to BootDrive cfrs500\casefile host.txt 8. Use an if statement to determine if sys.evtx exists (from #4) a. If sys.evtx exists echo sys.evtx successfully created In the above, if you see something in red, replace it with what it says (e.g. command-name for nbtstat would be nbtstat.txt.) 6. For #5, you need to execute the proper command to obtain the data listed. Create a Windows batch file. The batch file will contain the following: 1. Remark statements that: a. Your full name b. Course Number C. Semester d. Date project submitted 2. Ask the user interactively: a. Boot drive letter of the computer b. Computer name C. Computer Model 3. Check to see if the boot drive in #2 exists with the folder cfrs500: a. If yes cd BootDrive cfrs500 b. If no, make the directory BootDrive cfrs500 4. Check to see if casefile.txt exists: a. If yes goto the label DONE b. Tell the user that data already exists in the cfrs500 folder and exit the program 5. Output the variables in #2 to the file BootDrive cfrs500\casefile.txt Execute the correct commands redirecting output to command-name.txt in BootDrive cfrs500 in order to get the output below: a. Environment variable b. System information C. Mac address (You cannot use the ipconfig command) d. DNS table e. Export the system.evtx file to BootDrive cfrs500\sys.evtx 7. Use a FOR loop to: a. Execute hostname and send the output to a variable host b. Output the variable host to BootDrive cfrs500\casefile host.txt 8. Use an if statement to determine if sys.evtx exists (from #4) a. If sys.evtx exists echo sys.evtx successfully created In the above, if you see something in red, replace it with what it says (e.g. command-name for nbtstat would be nbtstat.txt.) 6. For #5, you need to execute the proper command to obtain the data listed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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

Students also viewed these Databases questions