|
-
Jul 6th, 2006, 02:10 PM
#15
Re: Adding to filename
Oh, that's a bit different.
Assume that what is in the listbox is moved into a variable called st1.
Path.GetFileName(st1) will return Library.lib.
It looks like textbox1 can be st1
It looks like textbox2 could be simply "u:\converted_files\job\ab_" & st1
For textbox3, you could use "u:\converted_files\job\ab_" & st2
where st2 = st1.substring(0,st1.length - st1.IndexOf(".")) & ".log"
I may be off on the second argument of substring, I may have the subtraction off by one. I'd want to test it before I used it.
My usual boring signature: Nothing
 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|