I have some code
that makes a listbox filled with the path and filename of all the .lib files in a folder.VB Code:
ListBox1.Items.AddRange(System.IO.Directory.GetFiles(TextBox1.Text, "*.lib"))
I also have this code:
that will run through the lsitbox and do something with each item.VB Code:
For Each itm As String In ListBox1.Items <insert code here> Next
On to the question.
I was wondering how I, inside the second code, add something to the pathname.
i.e. Change "c:\libraries\1234.lib" to "c:\libraries\ab_1234.lib"
I know I could use
but I have to do that with a bunch of different files.VB Code:
Name "c:\libraries\1234.lib" as "c:\libraries\ab_1234.lib"![]()




Reply With Quote