In my java app i'm adding some values to registry through reg.exe but i can't seem to get double quotes working. My code looks like this:
rt.exec("REG ADD HKCU\\Software\\MyApp\\Settings /v myPath /t REG_SZ /d \"C:\\mydir\"");
As you can see i have already escaped the double quotes with \" but when i view the registry the added value has no double quotes. Any idea what's wrong?