Benjaman
Rookie
How do I create a .BAT file instead of a .REG file ?
Hi all , I want to add reg add batch file instead of a .reg file , I have a reg key and when I double click on it exports some data to registry which is fine but now the problem is that I want to add these data through a batch file(not myreg.reg file) so i think i should use REG ADD right?
here is my reg data
REGEDIT4
[HKEY_CURRENT_USERSoftwareMy Own File Sorter]
[HKEY_CURRENT_USERSoftwareMy Own File SorterRegcode]
@="DCFA1E43-4F572A3A-C6EC9F67-8A1C9C41-0607E9D7-BF1FDF3A-AE703C7E-B3666661"
[HKEY_CURRENT_USERSoftwareMy Own File SorterUser]
@="new user"
When I copy this data onto a new batch file and replace [ ] with " " then I add REG ADD at the beginning of each line so it looks like this
REG ADD "HKEY_CURRENT....
REG ADD "HKEY_CURRENT....
It is adding each line succesfully but in the end its not working.
8 months ago





