double back slashes
hi,
i want to write the $instdir in a txt. it works, but i need the path with double back slashes.
C:\program\test
but i need:
C:\\program\\test
i hope u can help me
Archive: double back slashes
double back slashes
hi,
i want to write the $instdir in a txt. it works, but i need the path with double back slashes.
C:\program\test
but i need:
C:\\program\\test
i hope u can help me
Name "Output"
OutFile "Output.exe"
!include LogicLib.nsh
Function .onInit
StrCpy $R0 "c:\program files\my dir\"
StrCpy $0 ''
StrCpy $1 0
${Do}
StrCpy $2 $R0 1 $1
StrCpy $0 "$0$2"
IntOp $1 $1 + 1
${Select} $2
${Case} "\"
StrCpy $0 "$0$2"
StrCpy $2 "$2\"
${Case} ""
messagebox mb_ok "$0"
${ExitDo}
${CaseElse}
${EndSelect}
${Loop}
FunctionEnd
Section -
SectionEnd
thx it works :up: