Saltar al contenido
Underc0de /foro

Abrir y/o cerrar la Bandeja del CD...

Iniciado por ProcessKill, Febrero 24, 2010, 03:53:30 PM

Tema anterior - Siguiente tema

0 Miembros y 2 Visitantes están viendo este tema.

Avatar de ProcessKill
Febrero 24, 2010, 03:53:30 PM Ultima modificación: Julio 21, 2014, 07:20:27 PM por Expermicid
Abrir:

Código: text

Set WMP = CreateObject("WMPlayer.OCX.7")
msgbox WMP.CdRomCollection.Count
for i = 0 to WMP.CdRomCollection.Count -1
WMP.cdromCollection.Item(i).Eject
next
wscript.quit



Cerrar

Código: text

Set WMP = CreateObject("WMPlayer.OCX.7")
msgbox WMP.CdRomCollection.Count
for i = 0 to WMP.CdRomCollection.Count -1
WMP.cdromCollection.Item(i).Eject
WMP.cdromCollection.Item(i).Eject
next
wscript.quit



:D


bytes ;)
WhatsApp Telegram

¿Te quedó una duda sobre Otros lenguajes Scripting?

Preguntala y te responde la comunidad (y el asistente Underc0de IA si nadie llega antes). Es gratis y tarda un minuto.

Ya tengo cuenta
Guardamos tu pregunta en este navegador: después de entrar la publicás con un clic.
Grupo de WhatsApp