Rico.JohnnY Posted September 8, 2004 Posted September 8, 2004 sorry for my ignorance..what i want to do is to read a value from registry,and then assign it to a declared variable in a bat file? how to achieve that?any suggestion appreciated..
idle.newbie Posted September 8, 2004 Posted September 8, 2004 FOR /F "skip=4 tokens=2*" %%I IN ('REG QUERY "HKEY_CURRENT_USER\Environment" /V "TMP"') DO @SET TMP=%%JIf registry valueName(not registry data) contains space, change 2* to 3*, more spaces increase that digit.
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now