Rename Folder and Listbox Value
Posted on 2006-05-03
This is an odd one, but I will do my best to ask the question correctly.
I have a program that is workflow related. The first part of the process creates a folder with the session number(lets say 600) and the customers last name(lets say smith), so the path created looks like this; \\servername\main_folder\600smith\*. Now everytime my employees upload a document, based on which session they are in it will put that document in the above folder.
Here comes the tricky part for me.
At stage 3 of the workflow a loan number is associated to this session so at this point I have to rename the folder to the loan number(lets say K9999) and the persons last name. Now when this is done I also have to rename the listbox items to correspond with the new path.
So instead of \\servername\main_folder\600smith\filename.doc it will become \\servername\main_folder\K9999-SMITH\filename.doc and this will be in both the listbox of my program and on the shared network directory.
Thanks in advance