New
#1
Batch File That Compresses VOB Files (and Deletes Them)?
Having some difficulty in getting a batch file to compress each *.VOB file from a DVD and then deleting the original *.VOB file.
I'm fairly new to batch file writing, so I don't know much about it at the moment.
Here is the batch file I've created so far (to the extent of just compressing VOB files, and not deleting the original files yet) -
FOR %%a IN (*.VOB) DO (7z a -mx9 %%a *.VOB)
Running this batch gives an error and/or nothing seems to happen!?
There are approximately 20 VOB files on each DVD, and the batch file is intended to speed up the process of compressing each VOB using 7-zip ('7z' in the batch file, the 'a' means add to 7z archive, '-mx9' means use maximum compression, the following %%a is supposed to be the compressed archive/file name, and the *.VOB is supposed to be input file name).
Note that I can run 7-zip compression program (by itself) manually via the command line, so the Environment Variables have been set up properly. And by default, 7-zip will, or should, append the extension .7z to each compressed file.
How do I get this batch file to compress each VOB file?