elchaca Posted August 28, 2017 Share Posted August 28, 2017 How do I impletated this to autoit? FOR /F "tokens=3* delims= " %%a IN ('REG QUERY "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /v "Common AppData" 2^>NUL') DO SET CADFOLDER="%%b" Link to comment Share on other sites More sharing options...
kosamja Posted August 28, 2017 Share Posted August 28, 2017 regread Link to comment Share on other sites More sharing options...
elchaca Posted August 28, 2017 Author Share Posted August 28, 2017 You mean: REGREAD FOR /F "tokens=3* delims= " %%a IN ('REG QUERY "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /v "Common AppData" 2^>NUL') DO SET CADFOLDER="%%b" Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted August 28, 2017 Moderators Share Posted August 28, 2017 @elchaca admittedly the response from kosamja left a bit to be desired. Take a look at RegRead in the help file, along with the example provided, to see how it works. Based on your batch file, you may also want to look at RegEnumVal in the help file. You will see in that example how you can iterate through a key in the registry, looking for values. You can then use RegWrite to change the value. "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! 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