I'm trying to create a fake virus warning to freak out my friends, family members, etc. in Notepad. It's coming along great so far, but I ran into a small problem. Here's the script so far:
Code:
warning = MsgBox("A Virus has infected your computer! Immediate action must be taken to avoid risking damage. Would you like Windows to attempt to remove the Virus?",4+16 , "Warning!")
If warning = vbYes Then
a = MsgBox("Windows was unable to remove the Virus. Attempting to quarantine...",0+16 , "Removal Failed")
Else
b = MsgBox("The Virus is still harming your computer. Windows strongly recommends you take action against it to prevent any further damage. Are you sure you want to leave the Virus alone?",4+16 , "Warning!")
End If
If a = vbOK Then
c = MsgBox("Windows was unable to quarantine the Virus.",0+16 ,"Quarantine Failed")
End If
If b = vbNo Then
I want the next line to make the computer run a Batch file making it start a countdown to restarting. The script for the Batch file is as follows (and I'll add a message when this is finished):
How can I link this Batch file to the script for the fake virus warning so it opens after the victim says "No, No" or "Yes, OK, OK?"