Solved Syntax error on REG QUERY

Various / CUSTOM BUILT
March 7, 2017 at 02:18:06
Specs: Windows 10 Pro, Intel i7 4770k, 32GB 1600MHz RAM
I have this command:
for /f "skip=2 tokens=2,*" %%A in ('reg query "HKCU\Software\psec\!user!" /t REG_MULTI_SZ /v "MenuIDs" /se ,') do echo %%B

This should work, right? To my eyes it doesn't seem wrong.

Without the /se switch it works just fine, but whenever I add the /se switch followed by my desired separator it throws a syntax error in my face and refers me to reg query help. Judging by the examples in the help I can't see where I'm failing.

Anyone able to help?

Don't worry if plan A fails, there are 25 more letters in the alphabet ;)

message edited by RainBawZ


See More: Syntax error on REG QUERY

Report •

#1
March 7, 2017 at 04:26:59
✔ Best Answer
Nevermind, solved it

Looks like I have to have the separator character in quotes when in a FOR

Don't worry if plan A fails, there are 25 more letters in the alphabet ;)


Report •
Related Solutions


Ask Question