Jump to content

Welcome to Geeks to Go - Register now for FREE

Need help with your computer or device? Want to learn new tech skills? You're in the right place!
Geeks to Go is a friendly community of tech experts who can solve any problem you have. Just create a free account and post your question. Our volunteers will reply quickly and guide you through the steps. Don't let tech troubles stop you. Join Geeks to Go now and get the support you need!

How it Works Create Account


  • Please log in to reply




  • Member
  • PipPipPip
  • 226 posts
OK, I learned some VBScript in a class awhile back. I want to know how to make a VBScript that runs independent of IE. Also, I want to learn how to use wscript. An example of some specific things I would like to know is how to open the CD drive, and have a key entered (like the backspace). If you can, can you leave me an example of a simple file, and links to useful tutorials.
  • 0




    Tech Staff

  • Technician
  • 1,323 posts
Hello Granz00,

Following are examples for the tasks you want to perform:

Opening a CD drive:
Set oWMP = CreateObject("WMPlayer.OCX.7" )
Set colCDROMs = oWMP.cdromCollection

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

Pressing backspace:
Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.SendKeys "{BACKSPACE}"

Save as .vbs files and run.

This also might help you:
Download details: Windows Script 5.6 Documentation


  • 0

Similar Topics

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP