Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

conver \ to \\


1 reply to this topic

tuteja

tuteja
  • Full Members
  • 35 posts

Posted 26 March 2009 - 21:54

I need to convert single slash "\" to double slash "\\". How to do it using installscript.

Thanks for your help.

Best Regards,
Deepak

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 27 March 2009 - 09:40

svResult = your string with single backslashes
szFind= "\\";
szReplace = "\\\\";
nStart = 0;
nResult = StrReplace ( svResult, szFind, szReplace, nStart );

In InstallScripit the \ is escaped as \\, therefore a double backslash is \\\\