Use backslashes to escape the double quotes like this:
"\"C:\Program Files\\Microsoft SQL Server\""
Pergunta
Current Output:
[SqlServer2008]
INSTALLSHAREDDIR = C:\Program Files\Microsoft SQL Server
Required Output:
INSTALLSHAREDDIR = "C:\Program Files\Microsoft SQL Server"
Java code:
Uesin org.ini4j api..............
String installDoc ="F:\\SQLExpressConfigurationFile_x64.ini";
Wini ini;
File file = new File(installDoc);
try {
ini = new Wini(file);
ini.put("SQLSERVER2008", "INSTALLSHAREDDIR", "C:\Program Files\\Microsoft SQL Server");
ini.store();
Please let me know how to get required output with ini4j api or other api. Thanks in advance
Nenhuma solução correta
Outras dicas
Use backslashes to escape the double quotes like this:
"\"C:\Program Files\\Microsoft SQL Server\""