Search
Search titles only
By:
Search titles only
By:
Log in
Register
Search
Search titles only
By:
Search titles only
By:
Menu
Install the app
Install
Forums
New posts
All threads
Latest threads
New posts
Trending threads
Trending
Search forums
What's new
New posts
New ads
New profile posts
Latest activity
Free Ads
Latest reviews
Search ads
Members
Current visitors
New profile posts
Search profile posts
Contact us
Latest ads
Google Pixel 9 Pro
vgp
Updated:
Thursday at 5:57 PM
Ad icon
Jobreceive.com for sale
Blogerwiki
Updated:
Tuesday at 8:55 PM
Post Your Vehicle for Sale — FREE! - https://libro.lk
Kalu_Puth
Updated:
Tuesday at 7:38 PM
ඔයාගෙ Assignment හෝ Thesis එක හරියට හදාගමු
ErMurazor
Updated:
Sep 26, 2026
Ad icon
BlackWall V2ray servers
hu KANNA
Updated:
Sep 23, 2026
Electronics
Vehicles
Property
Search
Reply to thread
Forums
General
News
Eject CD/DVD drive infinitely using VBS
Get the App
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Message
<blockquote data-quote="sameera15852" data-source="post: 12134904" data-attributes="member: 123654"><p><a href="http://techsbot.com/wp-content/uploads/2011/12/images-8.jpg" target="_blank"><img src="http://techsbot.com/wp-content/uploads/2011/12/images-8.jpg" alt="" class="fr-fic fr-dii fr-draggable " style="" /></a></p><p></p><p></p><p></p><p> VBScript (Visual Basic Scripting Edition) is an Active Scripting language developed by Microsoft that is modeled on Visual Basic. It can be used to perform some actions by adding coding. Now let’s have a look on how to eject CD/DVD drive by VBS.</p><p></p><p></p><p> 1. Open a Notepad and paste the following code in it.</p><p style="margin-left: 20px">Set oWMP = CreateObject("WMPlayer.OCX.7" )</p> <p style="margin-left: 20px">Set colCDROMs = oWMP.cdromCollection</p> <p style="margin-left: 20px">if colCDROMs.Count >= 1 then</p> <p style="margin-left: 20px">do</p> <p style="margin-left: 20px">For i = 0 to colCDROMs.Count - 1</p> <p style="margin-left: 20px">colCDROMs.Item(i).Eject</p> <p style="margin-left: 20px">Next ' cdrom</p> <p style="margin-left: 20px">For i = 0 to colCDROMs.Count - 1</p> <p style="margin-left: 20px">colCDROMs.Item(i).Eject</p> <p style="margin-left: 20px">Next ' cdrom</p> <p style="margin-left: 20px">loop</p> <p style="margin-left: 20px">End If</p> <p style="margin-left: 20px"></p><p>2. Now save it with any name with an extension of .vbs</p><p></p><p></p><p style="text-align: center"><img src="http://techsbot.com/wp-content/uploads/2011/12/Save%20file.PNG" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p></p><p></p><p></p><p></p><p>3. Now you will get a file which look like the image below. Now open it to eject your CD/DVD drive continuously ( It will not allow you to insert the CD/DVD drive tray inside).</p><p></p><p></p><p style="text-align: center"> <a href="http://techsbot.com/wp-content/uploads/2011/12/Savedfile.png" target="_blank"><img src="http://techsbot.com/wp-content/uploads/2011/12/Savedfile.png" alt="" class="fr-fic fr-dii fr-draggable " style="" /></a></p> <p style="text-align: center"></p> <p style="text-align: center"><a href="http://techsbot.com/wp-content/uploads/2011/12/Savedfile.png" target="_blank">http://techsbot.com/wp-content/uploads/2011/12/Savedfile.png</a></p><p><strong>How to stop ejecting DVD/CD tray?</strong></p><p></p><p></p><p></p><p> 1. Press ctrl+shift+ delete or ctrl+shift+esc to open task manage.</p><p></p><p></p><p> 2. In task manager go to the tab “Process” . Then select “wsript.exe” and </p><p></p><p>press “End process button”.</p><p></p><p></p><p style="text-align: center"><img src="http://techsbot.com/wp-content/uploads/2011/12/End%20process.PNG" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p></blockquote><p></p>
[QUOTE="sameera15852, post: 12134904, member: 123654"] [URL="http://techsbot.com/wp-content/uploads/2011/12/images-8.jpg"][IMG]http://techsbot.com/wp-content/uploads/2011/12/images-8.jpg[/IMG][/URL] VBScript (Visual Basic Scripting Edition) is an Active Scripting language developed by Microsoft that is modeled on Visual Basic. It can be used to perform some actions by adding coding. Now let’s have a look on how to eject CD/DVD drive by VBS. 1. Open a Notepad and paste the following code in it. [INDENT]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 [/INDENT] 2. Now save it with any name with an extension of .vbs [CENTER][IMG]http://techsbot.com/wp-content/uploads/2011/12/Save%20file.PNG[/IMG][/CENTER] 3. Now you will get a file which look like the image below. Now open it to eject your CD/DVD drive continuously ( It will not allow you to insert the CD/DVD drive tray inside). [CENTER] [URL="http://techsbot.com/wp-content/uploads/2011/12/Savedfile.png"][IMG]http://techsbot.com/wp-content/uploads/2011/12/Savedfile.png[/IMG][/URL] [URL="http://techsbot.com/wp-content/uploads/2011/12/Savedfile.png"][/URL][/CENTER] [B]How to stop ejecting DVD/CD tray?[/B] 1. Press ctrl+shift+ delete or ctrl+shift+esc to open task manage. 2. In task manager go to the tab “Process” . Then select “wsript.exe” and press “End process button”. [CENTER][IMG]http://techsbot.com/wp-content/uploads/2011/12/End%20process.PNG[/IMG][/CENTER] [/QUOTE]
Insert quotes…
Verification
Haya warak paha keeyada? (haya wadi kireema paha)
Post reply
Top
Bottom