Click here to Skip to main content
15,883,733 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: hiding windows taskbar Pin
I am BATMAN4-May-09 6:13
I am BATMAN4-May-09 6:13 
GeneralRe: hiding windows taskbar [modified] Pin
Dave Kreskowiak4-May-09 17:14
mveDave Kreskowiak4-May-09 17:14 
GeneralRe: hiding windows taskbar Pin
hrishiS5-May-09 0:58
hrishiS5-May-09 0:58 
GeneralRe: hiding windows taskbar Pin
Dave Kreskowiak5-May-09 3:18
mveDave Kreskowiak5-May-09 3:18 
GeneralRe: hiding windows taskbar Pin
Skymir5-May-09 10:27
Skymir5-May-09 10:27 
QuestionEditing Individual Listview Subitems Pin
Rosstarr3-May-09 22:26
Rosstarr3-May-09 22:26 
AnswerRe: Editing Individual Listview Subitems Pin
Henry Minute4-May-09 2:41
Henry Minute4-May-09 2:41 
QuestionAppend ALL Textfiles within a folder to a Single Textfile Pin
vijay24823-May-09 22:14
vijay24823-May-09 22:14 
Hi all,
I want to select a folder from FolderBrowserDialog and write into a textbox and append all the files within the folder shown in the textbox as one file in the same folder...
Code sofar:
Private Sub BtnFolder_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BtnFolder.Click

        Dim MyFolderBrowser As New System.Windows.Forms.FolderBrowserDialog

        MyFolderBrowser.Description = "Select the Folder"

        MyFolderBrowser.ShowNewFolderButton = False

        Dim dlgResult As DialogResult = MyFolderBrowser.ShowDialog()

        If dlgResult = Windows.Forms.DialogResult.OK Then
            Textbox1.Text = MyFolderBrowser.SelectedPath
        End If

    End Sub

The above code opens a FolderBrowserDialog and allows to select a folder and the selected path is copied to the textbox.

Now, i want to know how to append all the files within the selected folder and write as one new textfile by clicking a button.

Thanks
Vijay
AnswerRe: Append ALL Textfiles within a folder to a Single Textfile Pin
Christian Graus3-May-09 22:17
protectorChristian Graus3-May-09 22:17 
GeneralMessage Closed Pin
4-May-09 2:32
vijay24824-May-09 2:32 
GeneralRe: Append ALL Textfiles within a folder to a Single Textfile Pin
riced4-May-09 3:10
riced4-May-09 3:10 
GeneralMessage Closed Pin
4-May-09 3:59
vijay24824-May-09 3:59 
GeneralRe: Append ALL Textfiles within a folder to a Single Textfile Pin
riced4-May-09 5:38
riced4-May-09 5:38 
GeneralRe: Append ALL Textfiles within a folder to a Single Textfile Pin
vijay24824-May-09 20:51
vijay24824-May-09 20:51 
GeneralRe: Append ALL Textfiles within a folder to a Single Textfile Pin
riced4-May-09 22:04
riced4-May-09 22:04 
GeneralRe: Append ALL Textfiles within a folder to a Single Textfile Pin
vijay24824-May-09 22:26
vijay24824-May-09 22:26 
GeneralRe: Append ALL Textfiles within a folder to a Single Textfile Pin
riced4-May-09 22:44
riced4-May-09 22:44 
GeneralRe: Append ALL Textfiles within a folder to a Single Textfile Pin
vijay24824-May-09 22:56
vijay24824-May-09 22:56 
GeneralMessage Closed Pin
4-May-09 23:14
vijay24824-May-09 23:14 
GeneralRe: Append ALL Textfiles within a folder to a Single Textfile Pin
riced5-May-09 0:30
riced5-May-09 0:30 
GeneralMessage Closed Pin
5-May-09 1:45
vijay24825-May-09 1:45 
GeneralRe: Append ALL Textfiles within a folder to a Single Textfile Pin
riced5-May-09 2:30
riced5-May-09 2:30 
GeneralRe: Append ALL Textfiles within a folder to a Single Textfile Pin
riced5-May-09 1:18
riced5-May-09 1:18 
GeneralRe: Append ALL Textfiles within a folder to a Single Textfile Pin
vijay24825-May-09 1:59
vijay24825-May-09 1:59 
GeneralRe: Append ALL Textfiles within a folder to a Single Textfile Pin
riced5-May-09 2:12
riced5-May-09 2:12 

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.