executing all the .reg files from batch file
I have following script that executes all the .reg files in the current directory. the problem is i also have sub directories in that folder and i want to execute those reg files as well. I am not sure what switch i am supposed to use. i tries using /s which returns all the .reg files of the drive. this is how my batch file looks like: rem @echo off cls SET folder=%~dp0 for %%i in ("%folder%*.reg") do (regedit /s "%%i") echo done pause EXIT This is how file/directory structure looks like: Folder1 batchfile.bat -> user double clicks or executes from command prompt 1.reg 2.reg 3.reg Folder2 4