• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Is it possible to use reg.exe to add values containing backslashes?

JayBone

Member
The situation I'm facing here, is that I'm trying to add a value with \'s in it. Specifically, \\server\path. Every attempt I've made so far, though, causes reg.exe to interpret that as a new key, rather than a value in the key I'm referencing.
Is there some way to do a 'reg add' with backslashes in the name of the value?
 
Already tried that. Didn't work. And I really don't get why. That is the way it gets exported if you export a key with that sort of value in regedit, after all. :\
 
You're putting the value is quotation marks?

Sounds like you might have to resort to using a .reg file and regedit /s to import it. 🙁
 
Yep. I've tried with both double and single quotes, and surrounding the \'s with singles inside double and vice versa to no avail. The entire key referenced and the vaule I'm trying to add need to be in quotes, since both contain spaces, and reg would otherwise take the space as a delimiter.

I suppose I could use regedit, but that'd necessitate generating a whole bunch of .reg files with different values in them, instead of reading the values on-the-fly from a text file I made with the appropriate values listed in it.
If it's the only way, though...
 
Back
Top