Click here to Skip to main content
15,915,501 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: How can I avoid multi-threading? Pin
Rick McLeod31-Jan-12 5:34
Rick McLeod31-Jan-12 5:34 
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 
Hi,

some facts:
1. file attributes are flags, several of them can be set at the same time, so your compare statements aren't going to cut it.
2. Windows, since Vista, is more protective about a number of files and folders, your old code is probably getting access violations.

what I do:
- 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.
- the exceptions will tell you which files you will have to skip, i.e. which checks to add to your code.
- and this will have to amended every time you move to the next Windows version...

Smile | :)
Luc Pattyn [My Articles] Nil Volentibus Arduum

Fed up by FireFox memory leaks I switched to Opera and now CP doesn't perform its paste magic, so links will not be offered. Sorry.

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

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.