Click here to Skip to main content
16,006,065 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Process ID [modified] Pin
Dave Kreskowiak14-Jul-06 0:55
mveDave Kreskowiak14-Jul-06 0:55 
AnswerRe: Process ID Pin
Dave Kreskowiak14-Jul-06 3:59
mveDave Kreskowiak14-Jul-06 3:59 
QuestionConnection Pulling Pin
Sinchan Nikam13-Jul-06 22:14
Sinchan Nikam13-Jul-06 22:14 
AnswerRe: Connection Pulling Pin
Dave Kreskowiak14-Jul-06 0:53
mveDave Kreskowiak14-Jul-06 0:53 
GeneralRe: Connection Pulling Pin
Chris Maunder14-Jul-06 1:45
cofounderChris Maunder14-Jul-06 1:45 
GeneralRe: Connection Pulling [modified] Pin
Dave Kreskowiak14-Jul-06 3:46
mveDave Kreskowiak14-Jul-06 3:46 
QuestionAccessing CD Drives Pin
The ANZAC13-Jul-06 22:07
The ANZAC13-Jul-06 22:07 
AnswerRe: Accessing CD Drives [modified] Pin
Dave Sexton14-Jul-06 1:46
Dave Sexton14-Jul-06 1:46 
try this. it's VB 2005.

Imports System.IO

Public Class Form1

    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        'get the drives
        Dim di As System.IO.DriveInfo
        For Each di In My.Computer.FileSystem.Drives
            'check that the drive is ready
            If di.IsReady = True Then
                If di.DriveFormat = "CDFS" Then
                    If di.VolumeLabel = "My Stuff" Then
                        'list files
                        FileSearch(di.Name)
                    End If
                End If
            End If
        Next
    End Sub

    Private Sub FileSearch(ByVal Drive As String)
        'search for files on the drive matching criteria

        Dim strCriteria As String = "*.exe"
        Dim objDirInfo As New DirectoryInfo(Drive)
        Dim objFile As FileInfo

        'list each file in all directories
        For Each objFile In objDirInfo.GetFiles(strCriteria, SearchOption.AllDirectories)
            If objFile.Name = "Setup.exe" Then
                objFile.Open(FileMode.Open, FileAccess.Read)
            End If
        Next
    End Sub

End Class




-- modified at 7:46 Friday 14th July, 2006
GeneralRe: Accessing CD Drives [modified] Pin
The ANZAC14-Jul-06 2:03
The ANZAC14-Jul-06 2:03 
GeneralRe: Accessing CD Drives Pin
Dave Sexton14-Jul-06 3:13
Dave Sexton14-Jul-06 3:13 
GeneralRe: Accessing CD Drives Pin
The ANZAC14-Jul-06 12:18
The ANZAC14-Jul-06 12:18 
GeneralRe: Accessing CD Drives Pin
The ANZAC14-Jul-06 13:15
The ANZAC14-Jul-06 13:15 
QuestionVB 6 Pin
Khalefa_1313-Jul-06 20:18
Khalefa_1313-Jul-06 20:18 
AnswerRe: VB 6 Pin
myfend_liang13-Jul-06 20:57
myfend_liang13-Jul-06 20:57 
QuestionDataBindings do not appear to function properly Pin
TJO113-Jul-06 19:28
TJO113-Jul-06 19:28 
Questioncan commandbuilder generate incorrect sql statement? Pin
Agus Budianto13-Jul-06 17:52
Agus Budianto13-Jul-06 17:52 
AnswerRe: can commandbuilder generate incorrect sql statement? Pin
Dave Kreskowiak14-Jul-06 0:51
mveDave Kreskowiak14-Jul-06 0:51 
GeneralRe: can commandbuilder generate incorrect sql statement? Pin
Agus Budianto14-Jul-06 4:36
Agus Budianto14-Jul-06 4:36 
Questionexcel col width changin Pin
_tasleem13-Jul-06 16:47
_tasleem13-Jul-06 16:47 
QuestionListView in VB.Net Pin
khwo13-Jul-06 16:23
khwo13-Jul-06 16:23 
AnswerRe: ListView in VB.Net Pin
Kschuler14-Jul-06 8:58
Kschuler14-Jul-06 8:58 
Questionregarding tabcontrol Pin
rcshek13-Jul-06 15:27
rcshek13-Jul-06 15:27 
AnswerRe: regarding tabcontrol Pin
Dave Sexton13-Jul-06 21:24
Dave Sexton13-Jul-06 21:24 
QuestionSystem.NullReferenceException Pin
andrew_dk13-Jul-06 12:36
andrew_dk13-Jul-06 12:36 
AnswerRe: System.NullReferenceException [modified] Pin
Dave Kreskowiak13-Jul-06 14:11
mveDave Kreskowiak13-Jul-06 14:11 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.