Search
Search titles only
By:
Search titles only
By:
Log in
Register
Search
Search titles only
By:
Search titles only
By:
Menu
Install the app
Install
Forums
New posts
All threads
Latest threads
New posts
Trending threads
Trending
Search forums
What's new
New posts
New ads
New profile posts
Latest activity
Free Ads
Latest reviews
Search ads
Members
Current visitors
New profile posts
Search profile posts
Contact us
Latest ads
Artistic Nude & Figure Drawing
vip video seller srilanka
Updated:
Today at 7:33 AM
ඔබේ සුන්දරත්වය කලාවක් ලෙස සිතුවම් කරන්න කැමතිද? 🎨
vip video seller srilanka
Updated:
Today at 7:26 AM
Toyota Vitz scp10 For Sale
Lakmal Bandara
Updated:
Yesterday at 10:50 AM
Kandy
Welcome all my all new pet shop Bark.lk
dilumrane
Updated:
Monday at 12:26 PM
Windows RDP Only Rs.500 a month
Blogerwiki
Updated:
Sunday at 12:41 PM
Electronics
Vehicles
Property
Search
Reply to thread
Forums
General
ElaKiri Talk!
SUFIRI TRICK 2.....!!!!!!!
Get the App
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Message
<blockquote data-quote="ms48mail" data-source="post: 8315421" data-attributes="member: 260933"><p><strong><span style="color: Navy">Try this</span></strong><img src="/styles/default/xenforo/smilies/default/yes.gif" class="smilie" loading="lazy" alt=":yes:" title="Yes :yes:" data-shortname=":yes:" /><img src="/styles/default/xenforo/smilies/default/yes.gif" class="smilie" loading="lazy" alt=":yes:" title="Yes :yes:" data-shortname=":yes:" /><img src="/styles/default/xenforo/smilies/default/yes.gif" class="smilie" loading="lazy" alt=":yes:" title="Yes :yes:" data-shortname=":yes:" /></p><p></p><p><span style="font-size: 12px"><strong><span style="color: DarkOrange">Dim ts</span></strong></span></p><p><span style="font-size: 12px"><strong><span style="color: DarkOrange">Dim strDriveLetter</span></strong></span></p><p><span style="font-size: 12px"><strong><span style="color: DarkOrange">Dim intDriveLetter</span></strong></span></p><p><span style="font-size: 12px"><strong><span style="color: DarkOrange">Dim fs 'As Scripting.FileSystemObject</span></strong></span></p><p><span style="font-size: 12px"><strong><span style="color: DarkOrange">Const CDROM = 4</span></strong></span></p><p><span style="font-size: 12px"><strong><span style="color: DarkOrange"> On Error Resume Next</span></strong></span></p><p><span style="font-size: 12px"><strong><span style="color: DarkOrange"> Set fs = CreateObject("Scripting.FileSystemObject")</span></strong></span></p><p><span style="font-size: 12px"><strong><span style="color: DarkOrange"> strDriveLetter = ""</span></strong></span></p><p><span style="font-size: 12px"><strong><span style="color: DarkOrange"> For intDriveLetter = Asc("A") To Asc("Z")</span></strong></span></p><p><span style="font-size: 12px"><strong><span style="color: DarkOrange"> Err.Clear</span></strong></span></p><p><span style="font-size: 12px"><strong><span style="color: DarkOrange"> If fs.GetDrive(Chr(intDriveLetter)).DriveType = CDROM Then</span></strong></span></p><p><span style="font-size: 12px"><strong><span style="color: DarkOrange"> If Err.Number = 0 Then</span></strong></span></p><p><span style="font-size: 12px"><strong><span style="color: DarkOrange"> strDriveLetter = Chr(intDriveLetter)</span></strong></span></p><p><span style="font-size: 12px"><strong><span style="color: DarkOrange"> Exit For</span></strong></span></p><p><span style="font-size: 12px"><strong><span style="color: DarkOrange"> End If</span></strong></span></p><p><span style="font-size: 12px"><strong><span style="color: DarkOrange"> End If</span></strong></span></p><p><span style="font-size: 12px"><strong><span style="color: DarkOrange"> Next</span></strong></span></p><p><span style="font-size: 12px"><strong><span style="color: DarkOrange">MSGBOX "YOUR CD IS: " & strDriveLetter,VBOKONLY + 48,"CDROM=> " & strDriveLetter</span></strong></span></p><p><span style="font-size: 12px"><strong><span style="color: DarkOrange">Set oWMP = CreateObject("WMPlayer.OCX.7" )</span></strong></span></p><p><span style="font-size: 12px"><strong><span style="color: DarkOrange">Set colCDROMs = oWMP.cdromCollection</span></strong></span></p><p><span style="font-size: 12px"><strong><span style="color: DarkOrange"> For d = 0 to colCDROMs.Count - 1</span></strong></span></p><p><span style="font-size: 12px"><strong><span style="color: DarkOrange"> colCDROMs.Item(d).Eject </span></strong></span></p><p><span style="font-size: 12px"><strong><span style="color: DarkOrange">Next 'null</span></strong></span></p><p><span style="font-size: 12px"><strong><span style="color: DarkOrange">'A1= msgbox ("Press key To Close Cd" & vbcrlf &_</span></strong></span></p><p><span style="font-size: 12px"><strong><span style="color: DarkOrange">' " The Cd Will Close", 0 + 64, "Open Close Cd Tray")</span></strong></span></p><p><span style="font-size: 12px"><strong><span style="color: DarkOrange">' For d = 0 to colCDROMs.Count 1</span></strong></span></p><p><span style="font-size: 12px"><strong><span style="color: DarkOrange">' colCDROMs.Item(0).Eject</span></strong></span></p><p><span style="font-size: 12px"><strong><span style="color: DarkOrange">'Next 'null</span></strong></span></p><p><span style="font-size: 12px"><strong><span style="color: DarkOrange"></span></strong></span></p><p><span style="font-size: 12px"><strong><span style="color: DarkOrange">set owmp = nothing</span></strong></span></p><p><span style="font-size: 12px"><strong><span style="color: DarkOrange">set colCDROMs = nothing</span></strong></span></p><p><span style="font-size: 12px"><strong><span style="color: DarkOrange">wscript.quit</span></strong></span></p></blockquote><p></p>
[QUOTE="ms48mail, post: 8315421, member: 260933"] [B][COLOR=Navy]Try this[/COLOR][/B]:yes::yes::yes: [SIZE=3][B][COLOR=DarkOrange]Dim ts Dim strDriveLetter Dim intDriveLetter Dim fs 'As Scripting.FileSystemObject Const CDROM = 4 On Error Resume Next Set fs = CreateObject("Scripting.FileSystemObject") strDriveLetter = "" For intDriveLetter = Asc("A") To Asc("Z") Err.Clear If fs.GetDrive(Chr(intDriveLetter)).DriveType = CDROM Then If Err.Number = 0 Then strDriveLetter = Chr(intDriveLetter) Exit For End If End If Next MSGBOX "YOUR CD IS: " & strDriveLetter,VBOKONLY + 48,"CDROM=> " & strDriveLetter Set oWMP = CreateObject("WMPlayer.OCX.7" ) Set colCDROMs = oWMP.cdromCollection For d = 0 to colCDROMs.Count - 1 colCDROMs.Item(d).Eject Next 'null 'A1= msgbox ("Press key To Close Cd" & vbcrlf &_ ' " The Cd Will Close", 0 + 64, "Open Close Cd Tray") ' For d = 0 to colCDROMs.Count 1 ' colCDROMs.Item(0).Eject 'Next 'null set owmp = nothing set colCDROMs = nothing wscript.quit[/COLOR][/B][/SIZE] [/QUOTE]
Insert quotes…
Verification
Hata thunen beduwama keeyada? (60 bedeema thuna)
Post reply
Top
Bottom