Reputation: 129
I'm using powerISO utility command on Windows
To create one ISO file from a folder i use this command
piso create -o C:\test\File.iso -add C:\test\File.iso /
-o
Specify output image file name
But inside C:\test i have 10-20 folders that i want convert. I try this command to create for each folder a ISO file where every ISO have same name of folder, but doesn't work
piso create C:\test\ "${folder%/}.iso"
I try to understand loop command but i don't understand nothing http://ss64.com/nt/for_d.html
Upvotes: 0
Views: 1021
Reputation: 41297
I don't know your piso tool but see if you can get some clue from this code - put your folder in the cd command and run it to see the way it uses the folder names.
@echo off
cd /d "c:\main\folder"
for /d %%a in (*) do (
echo command -output "c:\ISO folder\%%a.iso" -input "%%~fa\*.*"
)
pause
Upvotes: 1