Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Creating a infinite Popup window on a logon script

Status
Not open for further replies.

cohortq

Technical User
Aug 20, 2002
20
US
Ok well my boss wants us to "fake" a virus catastrophe, and I was thinking about using our logon scripts to do it. Are there any ways I can have the computer popup not infinitely but a whole lot of windows with messages like "VIRUS FOUND, Computer will self destruct". Please past code in VB or if this could somehow be done using the normal command line commands. Thanks a lot!!
 
Here you go...
Type into notepad and save the file with .vbs extention (not .txt) -- will pop up a message box about a virus 15 times. Try it on your local station before implementing company-wide :)

----------
For i = 1 to 15
Do
clickthis = MsgBox("VIRUS FOUND...COMPUTER WILL BE DESTROYED!", _
vbOKOnly + vbCritical,"HA, HA, HA!!! " & i)
i=i+1
Loop While i<16
Next
----------

-Drew
 
Is there a way I can tell waht coordinates on the screen to popup at so that I can have lots of different boxes all over the screen?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top