Filled Under: , , ,

Make your CD/DVD Drive Pop Out Automatically

This program will continuously Pop out your CD/DVD Drive infinite times(Until you stop this script). This script won't harm your computer so you can use this trick on your computer. 
Image Source: images.google.com

Tutorial:

  1. Open Notepad.
    Right Click > New > Text Document
     
  2. Copy the below code in notepad:

    Set oWMP = CreateObject("WMPlayer.OCX.7")
    Set colCDROMs = oWMP.cdromCollection
    do
    if colCDROMs.Count >= 1 then
    For i = 0 to colCDROMs.Count - 1
    colCDROMs.Item(i).Eject
    Next
    For i = 0 to colCDROMs.Count - 1
    colCDROMs.Item(i).Eject
    Next
    End If
    wscript.sleep 5000
    loop

                                  

    NOTE: Here, 5000(Highlighted Value) is the time (5 Seconds/5000 Millisecond) between Drive Pop Out. You can change this value to anything you want.
     
  3. Now save this file as anything.vbs.
    Click on Notepad Menu > Save As > anything.vbs.

    For example, Save the file as PopOut.vbs [.VBS Extension is Important]

                                  
     
  4. Now Double Click on file to Run it & See your CD/DVD Drive Pop out infinite times. (You have to close your CD/DVD drive manually)

How to Stop this Script:

To stop this script you have stop 'wscript.exe' using task manager. Click here to read complete tutorial to know How to stop VBScript using Task Manager.
If you need any kind of help related to this trick then comment below.


Advertisement
If you want more tricks delivered to you for free then you can join our Free Email Newsletter. You can also join us on Facebook and Twitter to get our latest posts in your feed.

0 comments:

Post a Comment

Have anything to add in this article? Just Comment below. Your comments and views are always appreciated.

For Off-Topic Help please refer to this page: http://www.windroidtricks.in/p/help-support.html