Hello Again
Could somebody please help me convert this sub to a function to return checkfile as a variable to be used by the calling sub pls can you show me the calling code and how to return checkfile
regards
jimbo
Public Sub foundupdate()
TargetFolder = "Update\"
Dim Found As Boolean
Found = False
For Each di As System.IO.DriveInfo In My.Computer.FileSystem.Drives
Dim checkFile As String = System.IO.Path.Combine(di.RootDirectory.FullName, TargetZipped)
If Not di.RootDirectory.Name.ToUpper.StartsWith("C") Then
If System.IO.File.Exists(checkFile) Then
Found = True
End If
End If
Next
If Found = True Then
UpdaterForm.ShowDialog()
End If
End Sub
Open in new window
HTH,-saige-