COMP 230 DeVry University Visual Basic Script Code Worksheet


Write a VBS that asks the user to enter the day of the week. Based on the user’s input, instruct the user to run the following programs:

Sunday: Virus Scan

Monday: Ipconfig

Tuesday: Restart

Wednesday: netstat

Thursday: Tasklist

Friday: Disk Clean up

Saturday: Defrag

If the user enters an incorrect input display an error message. You may use if-else or the select statement. Submit the VBS code and output screenshots.