Inside a main folder I have many subfolders (which may have sub-subfolders), and which have different types of files (extensions - *.ext).
I need to recursively get all *.nrg files, and then, for each one, call nrg2iso.exe (a command-line tool which converts nrg to iso - CD/DVD image files).
nrg2iso.exe has the following syntax:
nrg2iso.exe image.nrg image.iso
I tried to create a batch file (.bat):
FOR /R "C:\test" %%I IN (.) DO IF EXIST %%I\*.nrg nrg2iso *.nrg "%%I"\*.iso
But I got an error message - «*.nrg - No such file».
I made other similar batch files (.bat), for other purposes, and they worked fine. For example:
For /R ""C:\test" %%I IN (.) DO If Exist %%I\*.iso "C:\Program Files\WinRAR\WinRAR.exe" x "%%I"\*.iso "%%I
This extracts iso files using WinRAR.
Can you please help me to make a working batch script to convert nrg to iso (using nrg2iso)?
Thanks in advance.