This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Reading a value from a BAT file?

Hello,

I wish to get the default internet browser and the following code works from a BAT file.

However I don't know how to obtain the result?

SET Key=HKLM\Software\Clients\StartMenuInternet
:: Get the full path to the browser
FOR /F "tokens=3*" %%A IN ('REG QUERY "%Key%" /s') DO ECHO %%B

 

Parents Reply Children