[RESOLVED] Adding to filename
I have some code
VB Code:
ListBox1.Items.AddRange(System.IO.Directory.GetFiles(TextBox1.Text, "*.lib"))
that makes a listbox filled with the path and filename of all the .lib files in a folder.
I also have this code:
VB Code:
For Each itm As String In ListBox1.Items
<insert code here>
Next
that will run through the lsitbox and do something with each item.
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
VB Code:
Name "c:\libraries\1234.lib" as "c:\libraries\ab_1234.lib"
but I have to do that with a bunch of different files. :sick: