Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/aisoft/public_html/wp-content/plugins/social-networks-auto-poster-facebook-twitter-g/inc/nxs_functions_engine.php on line 266

Warning: Cannot modify header information - headers already sent by (output started at /home/aisoft/public_html/wp-content/plugins/social-networks-auto-poster-facebook-twitter-g/inc/nxs_functions_engine.php:266) in /home/aisoft/public_html/wp-includes/feed-rss2.php on line 8
RichTextBox Control Read Line by Line – Agarwal InnoSoft Labs https://agarwalinnosoft.com India's Fastest Growing Software Firm Specializing in IM Softwares. We Do the Impossibilities! Check out our Top Products! Wed, 06 Feb 2013 06:24:58 +0000 en-US hourly 1 https://wordpress.org/?v=7.1 Mass Rename Files and Folders https://agarwalinnosoft.com/mass-rename-files-and-folders/ https://agarwalinnosoft.com/mass-rename-files-and-folders/#respond Wed, 06 Feb 2013 06:24:58 +0000 https://agarwalinnosoft.com/?p=781 Hi,

This Small Code Helps us to Rename file in the Folder… Be Carefull with it..

 If Directory.Exists(TextBox1.Text) Then
            If Not TextBox2.Text = "" Then

                Dim str As String
                Dim ct As Integer
                ct = 0
                Try

                    For Each element As String In Directory.GetFiles(TextBox1.Text)
                        ListBox1.Items.Add(element)
                        str = TextBox1.Text & "\" & TextBox2.Text & " " & ct & ".jpg"
                        File.Move(element, str)
                        ct += 1
                    Next
                Catch ex As Exception
                    MsgBox(ex.ToString)
                End Try

                For Each element As String In Directory.GetFiles(TextBox1.Text)
                    ListBox2.Items.Add(element)
                Next
            Else
                MsgBox("Value Missing")

            End If
        Else
            MsgBox("Directory Not Found")
        End If

Textbox1 gets the folder name and textbox 2 gets the custom file name… suppose if folder name is,

c:\myname\myfiles

and if all files inside my files should be renamed to file 1, file 2 etc.. then in textbox2 we should give file. Be Careful with Extensions..

]]>
https://agarwalinnosoft.com/mass-rename-files-and-folders/feed/ 0