Rico.JohnnY Posted September 8, 2004 Share 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.. Link to comment Share on other sites More sharing options...
idle.newbie Posted September 8, 2004 Share 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. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now