COMP 230 DeVry University Vbscript Programming Code Lab Work 6

User Generated

fhaal3108

Programming

COMP 230

COMP

Description

Write a vbscript that does the following:

1) Runs ipconfig and logs the data in a text file.

2) Waits for 3 seconds

3) Reads the text file and displays the entire file contents on the screen

Submit your code and a screenshot of the output screen in a single word document.

User generated content is uploaded by users for the purposes of learning and should be used following Studypool's honor code & terms of service.

Explanation & Answer

Code..
outfile = "C:\mor\out.txt"
errfile = "C:\mor\err.txt"
cmd = "cmd /c ipconfig /all >""" & outfile & """ 2>""" & errfile & """"

timeout = DateAdd("s",...


Anonymous
I was stuck on this subject and a friend recommended Studypool. I'm so glad I checked it out!

Studypool
4.7
Trustpilot
4.5
Sitejabber
4.4