desktop shortcut

G

Guest

Is it possible to create a shortcut on desktop to eject dvd/cds from drives
rather than going<my computer - drive "D" / "E" - eject >
 
G

Gerald Ross

Alex said:
Is it possible to create a shortcut on desktop to eject dvd/cds from drives
rather than going<my computer - drive "D" / "E" - eject >

There is a little free program called Wizmo. Make a shortcut
"Wizmo open" and it opens the cd drive (or ejects it). You can also
make a "Wizmo reboot", Wizmo shutdown, "Wizmo hibernate" and many other
system command shortcuts.
 
W

Wesley Vogel

Yes.

These two .vbs files will open the trays on D: and E: drives.

Copy the lines below into Notepad, not including the ---- parts.

Save as ejectD.vbs

-----------below this line----------------
Set objShell = CreateObject("Shell.Application")
Set MyComp=objShell.NameSpace(17)
Set CD=MyComp.ParseName("D:\")
Set Context=CD.Verbs
CD.InvokeVerb "E&ject"
-----------above this line----------------

Copy the lines below into Notepad, not including the ---- parts.

Save as ejectE.vbs

-----------below this line----------------
Set objShell = CreateObject("Shell.Application")
Set MyComp=objShell.NameSpace(17)
Set CD=MyComp.ParseName("E:\")
Set Context=CD.Verbs
CD.InvokeVerb "E&ject"
-----------above this line----------------

There is one difference in the two, ("D:\") and ("E:\") are the drive
letters. These can be changed to any CD or DVD drive letter.

You can move the .vbs files where ever you want.

You can also create shortcuts to both .vbs files.

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In
 
W

Wesley Vogel

Forgot this.

Then just double click ejectD.vbs or ejectE.vbs to eject the drive. Or just
double click the shortcut to ejectD.vbs or ejectE.vbs to eject the drive.

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top