Create .dis Zip using 7z.exe?

Am trying to create a .dis file using 7zip from batch button, the following will create a .zip file successfully

set zipname={$name}.zip
"C:\Program Files\7-Zip\7z.exe" a %zipname% *

but

set zipname={$name}.dis
"C:\Program Files\7-Zip\7z.exe" a %zipname% *

creates a corrupt .dis file. Any help appreciated.

7zip doesn't know what a .dis file is; you'd either need some way to tell it that it's a zip file, or create it as .zip and then rename it.

Assuming your .xml file is correct, try:

set zipname={$name}.dis
"C:\Program Files\7-Zip\7z.exe" a -tzip %zipname% *

I tried to find an option to force it to not store folder names, but couldn't find one. Just check that the files aren't going into a sub-folder.

Many thanks that works great :slight_smile: