Search code examples
windowsregistrybatch-file

How to Create Registry key using a batfile


Need to Create a Registry Key using bat file.Can I create Reg Key using Command prompt or a bat file.

The main purpose behind this , I want to create envoirment variable using bat file.


Solution

  • You can use the Windows built-in command line tools, either regedit.exe or reg.exe, see: