Archive: how can I change "\" to "/" ??


how can I change "\" to "/" ??
I don`t know how change "\" to "/" ( sorry, I don`t know the name of this caractere!!

this is an exemple what I need..

File /r httpd.conf
${ConfigWrite} "$APACHE_HOME\conf\httpd.conf" "LoadModule php5_module " '"$PROGRAMFILES\PHP\php5apache2_2.dll"' $R0

and I need this

File /r httpd.conf
${ConfigWrite} "$APACHE_HOME\conf\httpd.conf" "LoadModule php5_module " '"$PROGRAMFILES/PHP/php5apache2_2.dll"' $R0

but when a I do the second exemple... it writes like this...

C:\Program Files/PHP/...


Help me!!!
tranks!!!


OutFile "test.exe"

!include LogicLib.nsh

Function .onInit
StrCpy $R0 "$PROGRAMFILES"
StrCpy $0 ""
StrCpy $1 0

${Do}
StrCpy $2 $R0 1 $1
IntOp $1 $1 + 1
${Unless} $2 == "\"
StrCpy $0 "$0$2"
${EndUnless}
${Select} $2
${Case} "\"
StrCpy $2 "/"
StrCpy $0 "$0$2"
${Case} ""
messagebox mb_ok "$0"
${ExitDo}
${CaseElse}
${EndSelect}
${Loop}
FunctionEnd

Section -
#
SectionEnd