Search found 2 matches

by stonysleep
27 Jul 2011 09:26
Forum: DOS Batch Forum
Topic: findstr on regquery command
Replies: 2
Views: 4332

Re: findstr on regquery command

like this?

Code: Select all

for /F "delims=" %%a in ('reg query HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Excel\Security ^| findstr /i level') do set var=%%a
by stonysleep
27 Jul 2011 06:50
Forum: DOS Batch Forum
Topic: findstr on regquery command
Replies: 2
Views: 4332

findstr on regquery command

i'm trying to save the output of a findstr of a registry query command into a variable within a batch file so i can do some calculations but I always have problems with for /F loops and it doesn't seem to like the way i'm doing it. the command i'm trying to run which works is: reg query HKEY_CURRENT...