Click here to Skip to main content
15,904,416 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: How can I avoid multi-threading? Pin
Luc Pattyn31-Jan-12 1:58
sitebuilderLuc Pattyn31-Jan-12 1:58 
AnswerRe: How can I avoid multi-threading? Pin
Dave Kreskowiak31-Jan-12 2:13
mveDave Kreskowiak31-Jan-12 2:13 
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 
On this fact:
"file attributes are flags, several of them can be set at the same time, so your compare statements aren't going to cut it."


I am seeing this when I follow via breakpoints, where it seems like several attributes are set. This makes sense to me.

Your suggestions:
- copy everything you need in a big loop; inside the loop, have a try-catch, and log each individual failure.
- before copying, check for some special names and skip those.


I like your suggestions, I just have a question. As far as tracking it to a log file, what attributes do you think I should catch that would be helpful to log? di.Attributes, di.fullname... anything else?

When you say special names, are you saying if I check fullname and the name of the recycle bin to a string I define "Recycle Bin ...". Is the name always consistent. We have several differnt servers 2000, 2003, 2008 and workstations are basically XP, Vista, and now 7. I assume the names might change between operating systems and the log will be helpful. I like this idea, but hoping you can clarify a little?

Thanks for your help!
Wink | ;)
Lost in the vast sea of .NET

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 
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 

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.