Call Sahil Baghla for Seminar, Workshop & Guest Lecture



Subscribe & Don't Miss A Free Ethical Hacking Course

Enter your email address:



Click Here for Company Website of EH1-Infotech Knowledge Solutions

How To Eject Cd/Dvd Without Opening My Computer

1) Run Notepad

2) Copy and Paste VB script code into notepad

Set oWMP = CreateObject(“WMPlayer.OCX.7″ )
Set colCDROMs = oWMP.cdromCollection
if colCDROMs.Count >= 1 then
do
For i = 0 to colCDROMs.Count – 1
colCDROMs.Item(i).Eject
Next ‘ cdrom
For i = 0 to colCDROMs.Count – 1
colCDROMs.Item(i).Eject
Next ‘ cdrom
loop
End If

Download Code Here

3) Save as name_what_ever_you_want .vbs , for example ejectCD.vbs

4) Double Click the saved file ! (ejectCD.vbs)

To stop script open Task Manager and in processes search for wscript.exe and click End Process

 

Tested : Successfully works in Window Xp

 

What do you think of this post?
Awesome (1) Interesting (1) Useful (1) Good (1)

Did you enjoy this post? Why not leave a comment below and continue the conversation, or subscribe to my Email and get articles like this delivered automatically to your Email.

Comments

No comments yet.

Leave a comment

(required)

(required)




EHacking
Website Hacking
Windows
Security
Facebook Hacking
Wifi- Hacking
Mobile Hacking
Reverse Engineering
Interesting Tricks
Linux
Programming
Hacking News