| Home | CueMake | Tag | Wapet | CD Backup | Email Me | |
| Verifying and Repairing | Extracting the Cuesheet | Restoring to CD | Transcoding | Complimentary Batch Files | ||||||
This is a collection of batch files which may be used in compliment to eac-enc.bat and eac-post.bat. Most batch files assume that your files have been created using my guide, and therefore may not work if you have not (e.g.: your PAR2 data is not named using the same format). Some, e.g.: ape-verify.bat or ape-decode.bat, will work regardless of the methods used.
All complimentary batch files (i.e.: all those other than eac-enc.bat and eac-post.bat) are designed to work with one parameter being passed. This parameter will either be a file, or a folder for batch operation. Many of the batch files can be used for both singular or batch operation (a file or a folder).
To pass the file or folder to the batch file you have two options:
I have all my batch files in my folder "C:\DOS", and have created shortcuts to the most useful on my desktop. To run a batch file I simply drag a file or folder onto the shortcut on my desktop.
If you call the batch file from the command line simply pass the file or folder name as a parameter, e.g.:
APE-VERIFY.BAT "E:\CDBackup\Green Day\American Idiot\CDImage.ape"
...or:
APE-VERIFY.BAT "E:\CDBackup"
Most batch files use either MAC.EXE, TAG.EXE, PAR2.EXE, or a mixture of all.
Before using the files, as with eac-enc.bat and eac-post.bat, you may need to amend the path to these applications.
A batch file is just a plain text file, so you can open it in Notepad, or a text editor of your choice (EditPlus is mine). Change all application paths to match the correct paths for your PC, and save.
| Batch File: | 3xx-399.BAT |
| Version: | 2.0.0 |
| Description: | Decodes an APE file to a temporary WAVE file, and back to APE format. Used to convert earlier versions of APE files to the latest version. The new file will be saved in place of the original file. Comprehensive error checking ensures that you should never lose the file. If a problem occurs at any stage you will either be left with the original and/or the decompressed WAVE. |
| Expected Parameter: | Pass either a single APE file or a folder containing APE files as the parameter. |
| Batch File: | APE-DECODE.BAT |
| Version: | 1.0.0 |
| Description: | Decodes an APE file to WAVE format. The WAVE file will be saved in the same folder as the APE file, and will have the same name. So, if your APE file has the path "E:\CDBackup\Green Day\American Idiot\CDImage.ape", the file created will be "E:\CDBackup\Green Day\American Idiot\CDImage.wav". |
| Expected Parameter: | Pass either a single APE file or a folder containing APE files as the parameter. |
| Batch File: | APE-ENCODE.BAT |
| Version: | 1.0.0 |
| Description: | Encodes a WAVE file to APE format. The APE file will be saved in the same folder as the WAVE file, and will have the same name. So, if your WAVE file has the path "E:\CDBackup\Green Day\American Idiot\CDImage.wav", the file created will be "E:\CDBackup\Green Day\American Idiot\CDImage.ape". |
| Expected Parameter: | Pass either a single WAVE file or a folder containing WAVE files as the parameter. |
| Batch File: | APE-REPAIR.BAT |
| Version: | 1.0.0 |
| Description: | Attempts to repair an APE file using the accompanying PAR2 parity data. |
| Expected Parameter: | Pass a single APE file as the parameter. |
| Batch File: | APE-TAG.BAT |
| Version: | 1.0.0 |
| Description: | Writes the contents of an APE file's APEv2 tags (including the CUESHEET tag) to a CUE file, with the intention that all surplus text be removed by hand, leaving a valid cuesheet. Used to extract the cuesheet from an APE file. The CUE file will be saved in the same folder as the APE file, and will be named the same, but with ".cue" appended. So, if your APE file has the path "E:\CDBackup\Green Day\American Idiot\CDImage.ape", the file created will be "E:\CDBackup\Green Day\American Idiot\CDImage.ape.cue". |
| Expected Parameter: | Pass a single APE file as the parameter. |
| Batch File: | APE-VERIFY.BAT |
| Version: | 1.2.0 |
| Description: | Verifies an APE file using Monkey's Audio's -V switch, to check that a file is not corrupt. |
| Expected Parameter: | Pass either a single APE file or a folder containing APE files as the parameter. |
| Batch File: | EAC-ENC.BAT |
| Version: | 2.0.11 |
| Description: | Read the guide. Called as an external encoder by EAC. Encodes EAC's WAVE file to APE and calls eac-post.bat |
| Expected Parameter: | Call using EAC as per my guide, or using eac-enc-go.bat. |
| Batch File: | EAC-ENC-FLAC.BAT |
| Version: | 1.0.0 |
| Description: | A version of eac-enc.bat adapted for FLAC by Dirk Westerfer. These files pass the year and genre information from EAC, and also embed the EAC log file in the FLAC image. You will need to use a command line like:
/c C:\dos\eac-enc-flac.bat %o %s %d "%a" "%g" "%m" "%y" %hHIGH%h %lLOW%l 01 |
| Expected Parameter: | Call using EAC as per my guide. |
| Batch File: | EAC-ENC-GO.BAT |
| Version: | 1.1.1 |
| Description: | Calls eac-enc.bat manually. Used to process an existing WAVE file, using the eac-enc.bat/eac-post.bat scripts, that has been created as part of an alternative process. In order for eac-enc.bat and eac-post.bat to run as normal eac-enc-go.bat will check that a suitable cuesheet and an EAC log file exists in the same folder (if you did not create the WAVE using EAC you will need to create a dummy log file in order for eac-post.bat to complete). If your WAVE file is called CDImage.wav the cuesheet must be called CDImage.ape.cue. If the album is "American Idiot" the log file must be called "American Idiot.log" (as per EAC's naming convention. NB: any illegal filename character should be replaced with a space). |
| Expected Parameter: | Pass a single WAVE file as the parameter. You will be asked to enter Artist, Album, Compression Level and Disc Number. Update: you can now alternatively call eac-enc-go.bat from another batch file passing all items as parameters, e.g.: eac-enc-go.bat "E:\CDBackup\CDImage.wav" "Green Day" "American Idiot" HIGH 29 |
| Batch File: | EAC-POST.BAT |
| Version: | 2.0.7 |
| Description: | Read the guide. Called by eac-enc.bat. Executes TAG.EXE, PAR2.EXE, appends archive details to the CSV, and moves all files to the <artist>\<album> folders. |
| Expected Parameter: | Passed by eac-enc.bat. |
| Batch File: | EAC-POST-FLAC.BAT |
| Version: | 1.0.0 |
| Description: | A version of eac-post.bat adapted for FLAC by Dirk Westerfer. These files pass the year and genre information from EAC, and also embed the EAC log file in the FLAC image. See eac-enc-flac.bat |
| Expected Parameter: | Call using EAC as per my guide. |
| Batch File: | EAC-POST-GO.BAT |
| Version: | 1.1.0 |
| Description: | Calls eac-post.bat manually. Used to process an existing APE file, using the eac-enc.bat/eac-post.bat scripts, that has been created as part of an alternative process. In order for eac-post.bat to run as normal eac-post-go.bat will check that a suitable cuesheet and an EAC log file exists in the same folder (if you did not create the APE file using EAC you will need to create a dummy log file in order for eac-post.bat to complete). If your APE file is called CDImage.ape the cuesheet must be called CDImage.ape.cue. If the album is "American Idiot" the log file must be called "American Idiot.log" (as per EAC's naming convention. NB: any illegal filename character should be replaced with a space). |
| Expected Parameter: | Pass a single APE file as the parameter. You will be asked to enter Artist, Album, and Disc Number. Update: you can now alternatively call eac-enc-go.bat from another batch file passing all items as parameters, e.g.: CALL eac-post-go.bat "E:\CDBackup\CDImage.ape" "Green Day" "American Idiot" 29 |
| Batch File: | EAC-WV.BAT |
| Version: | 1.0.1 |
| Description: | A WavPack alternative to eac-enc.bat written for VCSkier. No log or PAR2 files created. |
| Expected Parameter: | View this thread on Hydrogen Audio for an explanation. |
| Batch File: | EAC-WVP.BAT |
| Version: | 1.0.1 |
| Description: | A WavPack alternative to eac-post.bat written for VCSkier. EAC log file is embedded in WV file along with the cuesheet. |
| Expected Parameter: | View this thread on Hydrogen Audio for an explanation. |
| Batch File: | MD5-CREATE.BAT |
| Version: | 2.1.0 |
| Description: | Creates an MD5 digest file for the file or folder passed. If a folder is passed, an MD5 file called "digests.md5" will be created in the root of the folder, which stores the MD5 digest for all files contained within the folder, and its subfolders. If a file is passed, the MD5 file will be saved in the same folder as the file, and will be named the same, but with ".md5" appended. So, if your file has the path "E:\CDBackup\Green Day\American Idiot\CDImage.ape", the file created will be "E:\CDBackup\Green Day\American Idiot\CDImage.ape.md5". The script uses FSUM to compute the digest(s). The MD5 file can be easily checked against the file(s) later using md5-verify.bat. Following some bad sector reports in Nero when archiving to DVD I am considering creating MD5 digests for all files to be burnt, and storing the MD5 file in the root of the DVD. This will enable me to verify every file on the disc (including PAR2 files), and not just the APE files, which are currently verified using Monkey's Audio's internal routines (ape-verify.bat). |
| Expected Parameter: | Pass either a single file or a folder as the parameter. |
| Batch File: | MD5-VERIFY.BAT |
| Version: | 1.0.0 |
| Description: | Checks the files listed in an MD5 file and reports those files whose digest has changed. The script uses FSUM to verify the list of digests. The MD5 file can created initially using md5-create.bat. |
| Expected Parameter: | Pass an MD5 file as the parameter. |
| Batch File: | REMOVE-CUESHEET.BAT |
| Version: | 1.0.1 |
| Description: | Removes the CUESHEET tag from a file. When transcoding from an image to track files using Foobar it will copy all tags across - including the CUESHEET tag. This tag is unwanted for track files. |
| Expected Parameter: | Pass either a single file or a folder as the parameter. The batch file will not process files that Tag is unfamiliar with. |
| Version | Date | Comment |
|---|---|---|
| 1.0.3 | 2005-05-13 | Updated md5-create.bat to version 2.0.0. You can now pass a file or a folder. |
| 1.0.2 | 2005-05-05 | Added md5-create.bat and md5-verify.bat. |
| 1.0.1 | 2005-04-22 | Added remove-cuesheet.bat. |
| 1.0 | 2005-04-07 | Initial version. |
This document has been printed from http://www.neilpopham.pwp.blueyonder.co.uk/