Click here to Skip to main content
15,890,438 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: How can I avoid multi-threading? Pin
Bernhard Hiller31-Jan-12 20:55
Bernhard Hiller31-Jan-12 20:55 
QuestionAdd 3 columns from database to ComboBox Pin
ivo7530-Jan-12 8:38
ivo7530-Jan-12 8:38 
AnswerRe: Add 3 columns from database to ComboBox Pin
Simon_Whale30-Jan-12 8:50
Simon_Whale30-Jan-12 8:50 
QuestionVB 2010 code fails when copying root directory. Pin
KreativeKai30-Jan-12 2:30
professionalKreativeKai30-Jan-12 2:30 
AnswerRe: VB 2010 code fails when copying root directory. Pin
Luc Pattyn30-Jan-12 2:45
sitebuilderLuc Pattyn30-Jan-12 2:45 
GeneralRe: VB 2010 code fails when copying root directory. Pin
KreativeKai30-Jan-12 3:09
professionalKreativeKai30-Jan-12 3:09 
AnswerRe: VB 2010 code fails when copying root directory. Pin
Luc Pattyn30-Jan-12 3:21
sitebuilderLuc Pattyn30-Jan-12 3:21 
GeneralRe: VB 2010 code fails when copying root directory. Pin
KreativeKai30-Jan-12 8:07
professionalKreativeKai30-Jan-12 8:07 
Thanks for all your help Luc! It is appreciated! Cool | :cool:

Below is the code I used in case anyone else can learn from it later when searching the message boards...

<br />
Dim di As DirectoryInfo<br />
For Each di In currentDirectory.GetDirectories()<br />
  Dim strDirectoryName As String = di.Name<br />
  Dim intFoundRB As Integer = strDirectoryName.IndexOf("$RECYCLE.BIN")<br />
  Dim intFoundSV As Integer = strDirectoryName.IndexOf("System Volume Information")<br />
  'Skip $Recycle.Bin or System Volume Information directories<br />
  If (intFoundRB = -1) And (intFoundSV = -1) Then<br />
     Try<br />
        ... Copy logic<br />
     Catch ex As Exception<br />
        ... logic writing to log file for future reference if needed...<br />
     End Try<br />
  End If<br />
Next

Lost in the vast sea of .NET

GeneralRe: VB 2010 code fails when copying root directory. Pin
Dave Kreskowiak30-Jan-12 4:25
mveDave Kreskowiak30-Jan-12 4:25 
GeneralRe: VB 2010 code fails when copying root directory. Pin
KreativeKai30-Jan-12 8:00
professionalKreativeKai30-Jan-12 8:00 
GeneralRe: VB 2010 code fails when copying root directory. Pin
Dave Kreskowiak30-Jan-12 8:10
mveDave Kreskowiak30-Jan-12 8:10 
GeneralRe: VB 2010 code fails when copying root directory. Pin
KreativeKai30-Jan-12 9:18
professionalKreativeKai30-Jan-12 9:18 
Questionvisual basic6.0 Pin
mahesh kagitha28-Jan-12 18:41
mahesh kagitha28-Jan-12 18:41 
AnswerRe: visual basic6.0 Pin
Richard MacCutchan28-Jan-12 21:40
mveRichard MacCutchan28-Jan-12 21:40 
GeneralRe: visual basic6.0 Pin
Gregory Gadow30-Jan-12 7:45
Gregory Gadow30-Jan-12 7:45 
AnswerRe: visual basic6.0 Pin
Eddy Vluggen30-Jan-12 7:47
professionalEddy Vluggen30-Jan-12 7:47 
AnswerRe: visual basic6.0 Pin
Abhinav S28-Jan-12 22:03
Abhinav S28-Jan-12 22:03 
AnswerRe: visual basic6.0 Pin
Luc Pattyn28-Jan-12 22:16
sitebuilderLuc Pattyn28-Jan-12 22:16 
GeneralRe: visual basic6.0 Pin
Richard MacCutchan28-Jan-12 22:26
mveRichard MacCutchan28-Jan-12 22:26 
GeneralRe: visual basic6.0 Pin
Luc Pattyn28-Jan-12 22:44
sitebuilderLuc Pattyn28-Jan-12 22:44 
GeneralRe: visual basic6.0 Pin
Bernhard Hiller29-Jan-12 20:51
Bernhard Hiller29-Jan-12 20:51 
AnswerRe: visual basic6.0 Pin
thatraja28-Jan-12 23:00
professionalthatraja28-Jan-12 23:00 
GeneralRe: visual basic6.0 Pin
Framework .l.29-Jan-12 16:28
Framework .l.29-Jan-12 16:28 
GeneralRe: visual basic6.0 Pin
Bernhard Hiller29-Jan-12 21:00
Bernhard Hiller29-Jan-12 21:00 
QuestionSkin with Vb2008 Pin
Mangore7527-Jan-12 7:04
Mangore7527-Jan-12 7:04 

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.