Click here to Skip to main content
16,010,876 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionDataTable.Select question re Date columns Pin
TheComputerMan26-Nov-08 4:27
TheComputerMan26-Nov-08 4:27 
AnswerRe: DataTable.Select question re Date columns Pin
Mycroft Holmes26-Nov-08 16:24
professionalMycroft Holmes26-Nov-08 16:24 
AnswerRe: DataTable.Select question re Date columns Pin
Nanda_MR26-Nov-08 17:10
Nanda_MR26-Nov-08 17:10 
QuestionASP.NET (Treeview & Menu) Pin
Nanda_MR26-Nov-08 1:05
Nanda_MR26-Nov-08 1:05 
AnswerRe: ASP.NET (Treeview & Menu) Pin
Tom Deketelaere26-Nov-08 2:06
professionalTom Deketelaere26-Nov-08 2:06 
QuestionAccessing Web browser's text Pin
Gagan.2025-Nov-08 23:17
Gagan.2025-Nov-08 23:17 
QuestionRename Extensions in subfolders Pin
Serpent66625-Nov-08 21:58
Serpent66625-Nov-08 21:58 
AnswerRe: Rename Extensions in subfolders Pin
Ben Fair26-Nov-08 3:39
Ben Fair26-Nov-08 3:39 
I don't believe there is a built in mechanism for simulating following the file system hierarchy, so you'll have to create your own. You need to put the logic of renaming all the .txt files to .bak in a folder into a sub and then use recursion to walk the directory structure. So, you'll have a sub that accepts either a folder object or a string that is the path (your choice) and then within the sub you'll process all the files and then have it call itself for each folder within the supplied path. Here's some pseudocode:

sub ProcessFolder(folder)
    foreach(file in folder.files)
        rename file...
    
    foreach(folder in folder.folders)
        ProcessFolder(folder)
end sub


From your main script you'll just call the sub with for the root level of folder and then let it handle everything from there.

Keep It Simple Stupid! (KISS)

GeneralRe: Rename Extensions in subfolders Pin
Serpent66626-Nov-08 12:03
Serpent66626-Nov-08 12:03 
QuestionCOPY A DATA TABLE Pin
Pasan14825-Nov-08 20:41
Pasan14825-Nov-08 20:41 
AnswerRe: COPY A DATA TABLE Pin
Christian Graus25-Nov-08 21:01
protectorChristian Graus25-Nov-08 21:01 
AnswerRe: COPY A DATA TABLE Pin
Amit Kushwaha25-Nov-08 22:56
Amit Kushwaha25-Nov-08 22:56 
AnswerRe: COPY A DATA TABLE Pin
Mycroft Holmes26-Nov-08 16:26
professionalMycroft Holmes26-Nov-08 16:26 
Questionopen a website from a windows application in any browser Pin
Sebastian T Xavier25-Nov-08 19:13
Sebastian T Xavier25-Nov-08 19:13 
AnswerRe: open a website from a windows application in any browser Pin
Christian Graus25-Nov-08 19:58
protectorChristian Graus25-Nov-08 19:58 
AnswerRe: open a website from a windows application in any browser Pin
dmex26-Nov-08 6:13
dmex26-Nov-08 6:13 
Questiongurbage values coming from the comport while using mscomm32.ocx Pin
souravghosh1825-Nov-08 18:26
souravghosh1825-Nov-08 18:26 
AnswerRe: gurbage values coming from the comport while using mscomm32.ocx Pin
Nanda_MR25-Nov-08 18:36
Nanda_MR25-Nov-08 18:36 
GeneralRe: gurbage values coming from the comport while using mscomm32.ocx Pin
souravghosh1825-Nov-08 18:41
souravghosh1825-Nov-08 18:41 
GeneralRe: gurbage values coming from the comport while using mscomm32.ocx Pin
Nanda_MR25-Nov-08 22:58
Nanda_MR25-Nov-08 22:58 
AnswerRe: gurbage values coming from the comport while using mscomm32.ocx Pin
Rajesh Anuhya25-Nov-08 19:11
professionalRajesh Anuhya25-Nov-08 19:11 
QuestionIs it possible to build a control array based on existing controls created at design time? Pin
Jon_Boy25-Nov-08 7:10
Jon_Boy25-Nov-08 7:10 
AnswerRe: Is it possible to build a control array based on existing controls created at design time? Pin
Jon_Boy25-Nov-08 7:36
Jon_Boy25-Nov-08 7:36 
GeneralRe: Is it possible to build a control array based on existing controls created at design time? Pin
Dave Kreskowiak25-Nov-08 8:20
mveDave Kreskowiak25-Nov-08 8:20 
AnswerRe: Is it possible to build a control array based on existing controls created at design time? Pin
Christian Graus25-Nov-08 9:34
protectorChristian Graus25-Nov-08 9:34 

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.