သင့္စက္ရဲ ့ CD/DVD -Rom ေတြကို ၀င္လုိက္ထြက္လိုက္ လုပ္တဲ့ Code ေလးပါ..
notepad ကုိဖြင့္ျပီးေတာ့..
ေအာက္ကကုဒ္ေတြကို ထည့္လုိက္ပါ..
Set oWMP = CreateObject("WMPlayer.OCX.7" )
Set colCDROMs = oWMP.cdromCollection
if colCDROMs.Count >= 1 then
do
For i = 0 to colCDROMs.Count - 1colCDROMs.Item(i).Eject
Next ' cdrom
For i = 0 to colCDROMs.Count - 1
colCDROMs.Item(i).Eject
Next ' cdromloop
End If
ျပီးသြားရင္ rom.vbs နမည္နဲ ့ save လုိက္ပါ..
ျပီးရင္ run ၾကည့္ပါ..
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment