Jump to content

Welcome to Geeks to Go - Register now for FREE

Geeks To Go is a helpful hub, where thousands of volunteer geeks quickly serve friendly answers and support. Check out the forums and get free advice from the experts. Register now to gain access to all of our features, it's FREE and only takes one minute. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more.

Create Account How it Works


  • 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