chelvis
12-15-2006, 03:56 PM
I have a following path name which varies all the time. Say for example the path name may be like these:
/APC101/image2.gif
/CE2_OPEC/image2_s.gif
/EF0OP_12/image3Sm.gif
In the above the first ones are directory names which varies in the code.
I have to remove the first directory and concatenate the image name with another string. So in this case I have to remove from '/' to '/' including the '/'
How can I use substring function to do this? Otherwise is there any other function I can use? I have to incorporate this in C# later.
/APC101/image2.gif
/CE2_OPEC/image2_s.gif
/EF0OP_12/image3Sm.gif
In the above the first ones are directory names which varies in the code.
I have to remove the first directory and concatenate the image name with another string. So in this case I have to remove from '/' to '/' including the '/'
How can I use substring function to do this? Otherwise is there any other function I can use? I have to incorporate this in C# later.