Hi guys
I have this string 'C:\Web Configs\SERVER1\WConfig\d\Inetpub\Wwwroot\WEB_APP\eGAV\WebPartsWeb\ACF.Servico.eAv.Web_20081010\web.config'.
I need to store 'C:\Web Configs\SERVER1' to one variable.
Store 'SERVER1' to another variable.
d\Inetpub\Wwwroot\WEB_APP\eGAV\WebPartsWeb\ACF.Servico.eAv.Web_20081010\web.config' to another one. In this last i need to replace the first / by :
Can anyone help me please
Loading
meliPosted May 27, 2009, 12:36 PM
Hi Ricardo, try this:
string [] str = yourstring.Split('\");
then rebuild your string in different variable, for example:
string var1=str[0] + "\" + str[1] + "\" + str[2];
You got the idea.
Mel