Question: 1. Create a batch file (hw3_yourlastname1.bat) which will schedule tasks on the system using Windows 7s Scheduled Task Console utility - schtasks (60%) Your batch
1. Create a batch file (hw3_yourlastname1.bat) which will schedule tasks on the system using Windows 7s Scheduled Task Console utility - schtasks (60%)
Your batch file (hw3_yourlastname1.bat) will include instructions to do the followings:
i. List the directories and files in the current directory
ii. Pause the script to see the list of directories and files
iii. Clear the screen iv. Pause the script
v. Schedule a task to start Check Disk (chkdsk.exe) every Friday at 5:30pm using Scheduled Task Console
vi. Schedule a task to start Disk Defragmenter (dfrgui.exe) every 1 st day of a month at 11:30pm using Scheduled Task Console
vii. Display all the scheduled tasks on the system
viii. Pause the script to see the list of scheduled tasks
2. Windows Script Host (WSH) facilitates developing scripts for Windows 7 using scripting languages such as Visual Basic.
a. Write down a visual basic script (hw3_yourlastname2.vbs) which will display the current users login name, computer name, domain name and user profile (home folder) in a message box (20%)
b. Write down a visual basic script (hw3_yourlastname3.vbs) which will list all the printers (including virtual ones such as Adobe Writer) and their assigned port(s) defined on your machine (20%)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
