Backslash woes writing to registry
Posted: Fri Jan 17, 2014 7:39 am
I have Installaware 2012 Admin edition I'm trying to write the following:
Provider=Microsoft.Jet.OLEDB.4.0;User ID="";Data Source=\\server1\vol3$\databases\mbs\new_mbs\mdb.mdb;Persist Security Info=False;Jet OLEDB:Database Password="xxxxxxx"
as a string registry data value.
The problem is Installaware is converting the double backslash to a single so is writing:
Provider=Microsoft.Jet.OLEDB.4.0;User ID="";Data Source=\server1\vol3$\databases\mbs\new_mbs\mdb.mdb;Persist Security Info=False;Jet OLEDB:Database Password="xxxxxxx"
I've tried all sorts of things, it has something to do with the dollar symbol. The only way I could get it to function was use "\\\\\\" instead of "\\" but that seems a hack. I have successfully written other registry value where a double backslash is present.
Is there anyway to escape the dollar sign (I've even tried using a variable $DOLLAR$ to represent a $ but that still fails)
Any suggestions please.
Provider=Microsoft.Jet.OLEDB.4.0;User ID="";Data Source=\\server1\vol3$\databases\mbs\new_mbs\mdb.mdb;Persist Security Info=False;Jet OLEDB:Database Password="xxxxxxx"
as a string registry data value.
The problem is Installaware is converting the double backslash to a single so is writing:
Provider=Microsoft.Jet.OLEDB.4.0;User ID="";Data Source=\server1\vol3$\databases\mbs\new_mbs\mdb.mdb;Persist Security Info=False;Jet OLEDB:Database Password="xxxxxxx"
I've tried all sorts of things, it has something to do with the dollar symbol. The only way I could get it to function was use "\\\\\\" instead of "\\" but that seems a hack. I have successfully written other registry value where a double backslash is present.
Is there anyway to escape the dollar sign (I've even tried using a variable $DOLLAR$ to represent a $ but that still fails)
Any suggestions please.