Click here to Skip to main content
15,895,142 members
Home / Discussions / Visual Basic
   

Visual Basic

 
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 
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 
For future reference, your code wasn't checking to see if any attributes were turned on. That IF statement you posted only returned True if one and only one attribute was turned on. Your check got lucky if it returned true.

You would normally check to see if a single bit flag is enabled like this:
If (di.Attributes And FileAttributes.System) = FileAttributes.System Then


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 
AnswerRe: Skin with Vb2008 Pin
Wes Aday27-Jan-12 8:34
professionalWes Aday27-Jan-12 8:34 
AnswerRe: Skin with Vb2008 Pin
Eddy Vluggen27-Jan-12 23:47
professionalEddy Vluggen27-Jan-12 23:47 
GeneralRe: Skin with Vb2008 Pin
Mangore7528-Jan-12 3:55
Mangore7528-Jan-12 3:55 

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.