Click here to Skip to main content
16,016,557 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Navigating folders in listview. Pin
Richard MacCutchan17-Sep-15 1:21
mveRichard MacCutchan17-Sep-15 1:21 
GeneralRe: Navigating folders in listview. Pin
GeekyGirlPanacea17-Sep-15 16:17
GeekyGirlPanacea17-Sep-15 16:17 
QuestionVisual Basic program to recursively take ownership of a folder and all its sub-contents Pin
Member 1186689316-Sep-15 7:15
Member 1186689316-Sep-15 7:15 
AnswerRe: Visual Basic program to recursively take ownership of a folder and all its sub-contents Pin
Wendelius16-Sep-15 7:44
mentorWendelius16-Sep-15 7:44 
GeneralRe: Visual Basic program to recursively take ownership of a folder and all its sub-contents Pin
Member 1186689316-Sep-15 7:58
Member 1186689316-Sep-15 7:58 
GeneralRe: Visual Basic program to recursively take ownership of a folder and all its sub-contents Pin
Wendelius16-Sep-15 8:53
mentorWendelius16-Sep-15 8:53 
GeneralRe: Visual Basic program to recursively take ownership of a folder and all its sub-contents Pin
Member 1186689316-Sep-15 10:10
Member 1186689316-Sep-15 10:10 
AnswerRe: Visual Basic program to recursively take ownership of a folder and all its sub-contents Pin
Wendelius16-Sep-15 17:05
mentorWendelius16-Sep-15 17:05 
Just put the code to change the ownership of a single directory in place of the debug.writeline. Or if you need to set the ownership before entering the directory, then inside the loop. Just remember to pas the user as a parameter

For example
VB
Sub HandleDir(directory As String, userName as String)

   Try
      ChangeOwner(directory, userName)
      For Each subdir As String In System.IO.Directory.GetDirectories(directory)
         HandleDir(subdir, userName)
      Next subdir
   Catch exception As System.Exception
      System.Diagnostics.Debug.WriteLine(exception.Message)
   End Try
End Sub
And to call
VB
HandleDir(Me.folderName.Text, strUser)

GeneralRe: Visual Basic program to recursively take ownership of a folder and all its sub-contents Pin
Member 1186689317-Sep-15 11:13
Member 1186689317-Sep-15 11:13 
GeneralRe: Visual Basic program to recursively take ownership of a folder and all its sub-contents Pin
Wendelius18-Sep-15 22:47
mentorWendelius18-Sep-15 22:47 
QuestionAutorun vb program from removable device Pin
Otekpo Emmanuel14-Sep-15 1:34
Otekpo Emmanuel14-Sep-15 1:34 
AnswerRe: Autorun vb program from removable device Pin
Brisingr Aerowing14-Sep-15 2:00
professionalBrisingr Aerowing14-Sep-15 2:00 
AnswerRe: Autorun vb program from removable device Pin
Dave Kreskowiak14-Sep-15 2:25
mveDave Kreskowiak14-Sep-15 2:25 
AnswerRe: Autorun vb program from removable device Pin
Tim Carmichael14-Sep-15 2:31
Tim Carmichael14-Sep-15 2:31 
QuestionHow Can I Remove Duplicate Item From Combobox With Datasource? Pin
Member 1051522510-Sep-15 2:55
professionalMember 1051522510-Sep-15 2:55 
AnswerRe: How Can I Remove Duplicate Item From Combobox With Datasource? Pin
Dave Kreskowiak11-Sep-15 3:41
mveDave Kreskowiak11-Sep-15 3:41 
Questionasking for source code of visual basic 6.0 Pin
Member 119717979-Sep-15 6:19
Member 119717979-Sep-15 6:19 
AnswerRe: asking for source code of visual basic 6.0 Pin
Richard MacCutchan9-Sep-15 6:23
mveRichard MacCutchan9-Sep-15 6:23 
AnswerRe: asking for source code of visual basic 6.0 Pin
Dave Kreskowiak9-Sep-15 7:03
mveDave Kreskowiak9-Sep-15 7:03 
QuestionRe: asking for source code of visual basic 6.0 Pin
Paul Conrad13-Sep-15 6:08
professionalPaul Conrad13-Sep-15 6:08 
AnswerRe: asking for source code of visual basic 6.0 Pin
RizalAziz16-Sep-15 19:11
RizalAziz16-Sep-15 19:11 
NewsRe: asking for source code of visual basic 6.0 Pin
Eddy Vluggen16-Sep-15 23:00
professionalEddy Vluggen16-Sep-15 23:00 
AnswerRe: asking for source code of visual basic 6.0 Pin
Otekpo Emmanuel28-Sep-15 17:36
Otekpo Emmanuel28-Sep-15 17:36 
Questionhow to receive SMS via USB Modem with SIM Card ? Pin
saedawke9-Sep-15 3:08
saedawke9-Sep-15 3:08 
AnswerRe: how to receive SMS via USB Modem with SIM Card ? Pin
Eddy Vluggen9-Sep-15 3:39
professionalEddy Vluggen9-Sep-15 3:39 

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.