Skip to content
This repository was archived by the owner on Oct 2, 2026. It is now read-only.
nohutoPublic archive

About

A simple CL tool that converts .reg to .bat

Topics

Resources

Stars

3 stars

Watchers

0 watching

Forks

Latest commit

 

History

16 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

reg2bat

Important

Moved into regkit, which supports conversion between .bat/.cmd, .ps1, .reg via the 'Tools' menu


A simple CL tool that converts .reg to .bat to skip the prompt and implement it better into automations (e.g., into a image as RunOnce file) and overall more flexibility. I used Python for it, as I need a better understanding of it for school reasons.

Example output:

It supports:

  • REG_NONE
  • REG_SZ
  • REG_EXPAND_SZ
  • REG_BINARY
  • REG_DWORD / REG_DWORD_LITTLE_ENDIAN
  • REG_DWORD_BIG_ENDIAN
  • REG_LINK
  • REG_MULTI_SZ
  • REG_RESOURCE_LIST
  • REG_FULL_RESOURCE_DESCRIPTOR
  • REG_RESOURCE_REQUIREMENTS_LIST
  • REG_QWORD / REG_QWORD_LITTLE_ENDIAN

Usage

.\reg2bat.py input.reg output.bat

Requirements

Python 3.x

About

A simple CL tool that converts .reg to .bat

Topics

Resources

Stars

3 stars

Watchers

0 watching

Forks

Contributors

Languages