Home > Software design >  What is correct PowerIso command to create an .iso file for each folder?
What is correct PowerIso command to create an .iso file for each folder?

Time:10-16

Inside C:\temp I have 12 folders

one
two
three
four
...

I try to use piso.exe command line to create a .iso file for each folder.

one.iso
two.iso
...

Ok, I open CMD and I try to use these commands

set piso="%programfiles%\PowerIso\piso.exe"
cd C:\temp
for /f "usebackq" %a in (`dir /b /ad`) do %piso% create -o  d:\%temp.iso -add d:\%temp

but it fails, also -add seems to be a bad parameter.

Any idea to solve ?

CodePudding user response:

Solution

set piso="%programfiles%\PowerIso\piso.exe"

cd C:\temp2

for /f "usebackq" %a in (`dir /b /ad`) do %piso% create -o  "C:\%a.iso" -add "C:\temp2" /
  • Related