LazyBoy Posted October 16, 2005 Share Posted October 16, 2005 I have some reg files I wanna apply to windows at the end of my program installation. I numbered them 001.reg to 005.regRight now I have:regedit /s %systemdrive%\registry\000.regregedit /s %systemdrive%\registry\001.regregedit /s %systemdrive%\registry\002.regregedit /s %systemdrive%\registry\003.regregedit /s %systemdrive%\registry\004.regregedit /s %systemdrive%\registry\005.regCan I just have one line instead? Likeregedit /s %systemdrive%\registry\*.regI was testing it and it didn't seem to get the second one and on. Link to comment Share on other sites More sharing options...
warrior1109 Posted October 16, 2005 Share Posted October 16, 2005 Why not merge them into a single .reg file? Link to comment Share on other sites More sharing options...
matthewk Posted October 16, 2005 Share Posted October 16, 2005 http://www.msfn.org/board/index.php?showto...=import+all+reg Link to comment Share on other sites More sharing options...
totoymola Posted October 17, 2005 Share Posted October 17, 2005 (edited) Hi. Try this. @CLS & @ECHO OFFSETLOCAL ENABLEEXTENSIONS:: IMPORT A SERIES OF REGISTRY FILES. (1.REG TO 5.REG):: PLACE ALL YOUR REG FILES ALONG WITH THIS COMMAND SCRIPT IN THE SAME FOLDER.FOR /L %%X IN (1, 1, 5) DO REGEDIT /S %%X.REGEXITWarning: I did not test this. EDIT: Please change your regfile names to 1.REG instead of 001.REG. Edited October 17, 2005 by totoymola Link to comment Share on other sites More sharing options...
BoardBabe Posted October 24, 2005 Share Posted October 24, 2005 Why don't you just have one reg file? if yor going to apply it all anyway... Link to comment Share on other sites More sharing options...
SiMoNsAyS Posted October 24, 2005 Share Posted October 24, 2005 maybe different files are for different purposes.i usually split my tweaks into different files b/c i is hard to scroll 5k lines xD Link to comment Share on other sites More sharing options...
galvanocentric Posted October 30, 2005 Share Posted October 30, 2005 Hi. Try this. @CLS & @ECHO OFFSETLOCAL ENABLEEXTENSIONS:: IMPORT A SERIES OF REGISTRY FILES. (1.REG TO 5.REG):: PLACE ALL YOUR REG FILES ALONG WITH THIS COMMAND SCRIPT IN THE SAME FOLDER.FOR /L %%X IN (1, 1, 5) DO REGEDIT /S %%X.REGEXITWarning: I did not test this. EDIT: Please change your regfile names to 1.REG instead of 001.REG.Small correction to your code, but otherwise it's fine:FOR /L %X IN (1,1,5) DO REGEDIT /S %X%.REGOr:FOR /L %X IN (1,1,5) DO REG /IMPORT %X%.REGDepending on personal preference.Just needed a bit of tweaking with the environmentals. :) Link to comment Share on other sites More sharing options...
Yzöwl Posted October 30, 2005 Share Posted October 30, 2005 Correction to your correction:FOR /L %X IN (1,1,5) DO REGEDIT /S %X%.REGOr:FOR /L %X IN (1,1,5) DO REG /IMPORT %X%.REGDepending on personal preference.Just needed a bit of tweaking with the environmentals. The original code was fine! Link to comment Share on other sites More sharing options...
totoymola Posted November 1, 2005 Share Posted November 1, 2005 Correction to your correction:FOR /L %X IN (1,1,5) DO REGEDIT /S %X%.REGOr:FOR /L %X IN (1,1,5) DO REG /IMPORT %X%.REGDepending on personal preference.Just needed a bit of tweaking with the environmentals. The original code was fine!Hahahahahah!!! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now