


Use the Ctrl+S keyboard shortcut to save it. Paste in the script that you want to create. This is how exactly it is on my notepad!! After starting, it does not greet goodmorning. The second thing is, of course, the correct file extension that the script will need to be saved with. Sapi.speak "The current time is " & Time_H & " " & Time_M1 & " " & Time_M2 & " " & Time_AP & " " & "M"
#HOW TO WRITE A SHUTDOWN SCRIPT IN NOTEPAD ON MAC HOW TO#
shutdown -s -t 60 -c 'Your message goes here' There is the code above, this video tutorial show you how to create a fake virus which will shutdown your computer and show a fake virus message. 'Set Hour - for some reason it did not like using an un-fixed variable for the hour Blogger and remote-control enthusiast Tim Matheson, who previously showed us how to shut down Windows using a text message, posts a script and easy-to-follow guide for doing the same on a Mac. In this video you will learn exactly how to create a non-threatening 'shutdown' command and disguise it as a real computer virus. 'Determine Time of Day for appropriate greeting

GreetName = wshShell.ExpandEnvironmentStrings( "%USERNAME%" )ĭim Greeting, Time_H, Time_M1, Time_M2, Time_AP Set wshShell = CreateObject( "WScript.Shell" ) Set Sapi = Wscript.CreateObject("SAPI.SpVoice") Now if I can just figure out how to have it load for all users without having to have multiple copies.įile will need to be put in each user's startup folder:Ĭ:\Users\ \AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup It still has to go in the user's startup folder, but it does not need to be modified to insert their name. Drag the shortcut file to Taskbar Pinners main window and drop it. Change the icon of the shortcut you have created to the one from C:WindowsSystem32Shell32.dll file. I managed to get this to work for any user without the jerkiness. Just follow the step-by step instructions below: Create a shortcut to your VBS file and place it anywhere you want.
