Call the ipconfig command and show all detailed information


1. Launch Notepad. 
2. In Notepad, create a new, empty document. 
3. Save your new, empty document as LastName_Lab9D.bat where LastName is your last name. 
4. In your batch file, accomplish the following: 
a. Disable the display of the term ECHO when calling the ECHO function. 
b. Clear the screen. 
c. Display This batch file will perform a diagnostic of your computer on the computer screen. 
d. Suspend processing of the batch file until the user presses a key. 
e. Create a new, empty file named results.txt on the user's desktop that contains the text Starting log at

[time], where [time] is replaced by the current system time. 

i. This should use relative paths and environmental variables - moving this batch file to another computer, or running the batch file as another user should not break the batch file! 
1. HINT: Remember the Environmental Variables listing at SS64.com? 
f. In the results.txt file, append the text, IP Addresses. 
g. In the results.txt file, append a line comprised of equal signs (=====). 
h. Call the ipconfig command and show all detailed information. 
i. Take the output of the ipconfig command and use the findstr command search for only numeric values followed by the word (Preferred). This will require the use of a regular expression, which will provide you: 

[0-9][0-9]*.[0-9][0-9]*.[0-9][0-9]*.[0-9][0-9]*(Preferred) 

j. To use the regular expression above, call findstr with the /R switch. Input the regular expression exactly as shown in the line above. 
k. Do not display the output of the ipconfig or findstr commands to the screen, rather append the filtered results from ipconfig to the results.txt file. 
l. Output the text Now, let's obtain a listing of all the current running programs on your computer. 
m. Suspend processing the batch file until the user presses a key. 
n. Call the command to display all currently running tasks including services. Do not display the output of the command on the screen; rather, append the output of the command to the results.txt file. 
o. Display Now, let's get a listing of the scheduled tasks that are supposed to run on this computer on the computer screen. 
p. Suspend processing the batch file until the user presses a key. 
q. Call the command used to schedule commands and programs to run. When called without an argument, this command will display all commands and programs that are scheduled to run. Do not display the output from this command; rather, append the output of the command to the results.txt file. 
r. Output the text Task complete! Run more results.txt to see the results of this diagnostic! to the computer screen. 
s. Suspend processing the batch file until the user presses a key. 
5. Once the batch file exits, examine the contents of the results.txt file. 
a. Compare what your batch file outputs to the sample_results.txt file, which you can find under the Lab Resources heading in the Lab 9D: Simple Diagnostics drop box in Angel.  

Request for Solution File

Ask an Expert for Answer!!
Programming Languages: Call the ipconfig command and show all detailed information
Reference No:- TGS080308

Expected delivery within 24 Hours