Multi. Par - Batch script. Because Multi. Par consists of PAR clients and GUI, it is possible to use a PAR client from DOS prompt (command prompt in Windows 2. XP). Read a manual of command line to the details of command and option. It is available by batch file (command script in Windows 2.
Sound Recorder is an audio recording program included in most versions of the Microsoft Windows metafamily of. Sound Recorder accepts command-line parameters. Sndrec32.exe (for opening sound recorder). Help in windows command line: 1. Right click from Mouse Select the New option and select shotcut type the following:-. Will W7 Sound Recorder allow you to save a voice recording in a wav format. WMA to Wave command-line converter. For example, the following command line works. SystemRoot%\System32\sndrec32.exe file. Read a manual of command line to the details of command an. Sound.wav REM call Sound Recoder sndrec32.exe /embedding /play. Batch script after MultiPar.
I then realize that I can use powershell to play simple wav file like this one from the command line. What replaced sndrec32 from Windows XP in Windows 7? In Vista, Sound Recorder is instead called SoundRecorder.exe and has different command-line switches.
XP), too. Below are some samples of batch file for Windows 2. XP. Copy & paste the whole lines into a text file. Modify the options for PAR2 files, and set the path of par. Write absolute path like; SET par. Read Windows OS 's help for command line usage and detail. Save a sample script to a file like .
To specify path of files or folders, Drag & Drop them on the batch file. When you put a shortcut icon of the batch file in . For example, when you supply 7 folders, total 7 PAR2 set are made. It is possible to show GUI for setting, too.@ECHO OFF. SET par. 2. When a GUI is closed, next GUI is opened with next folder. You may set an option in . For example, when there are 7 sub- folders, total 7 PAR2 set are made.@ECHO OFF.
REM check input path. IF . By this option, PAR2 file contains files only in each sub- folder. Create one PAR2 file per each file in a selected foldercommand. If there is a sub- folder in a folder, files in the sub- folder are searched, too.
Key Windows XP Executables The Windows XP Distribution CD; Living with. SNDREC32.EXE (Sound Recorder). TYPEPERF.EXE (Command-line Performance Monitor).
Instead of creating PAR2 files for all files in a sub- folder like previous sample, this creates one PAR2 file per each file in a sub- folder. For example, when there are 7 files in the folder, total 7 PAR2 files are made.@ECHO OFF. REM check input path.
IF . By this option, index file isn't created. Create individual PAR2 set per each set of 4 files from many selected filescommand. For example, when you supply 1. PAR2 set are made. Be careful about the number of source files and SHIFT per each step.
Create PAR2 recovery data and append it to each original ZIP / 7- Zip archive filecommand. Though ZIP / 7- Zip archive don't have a feature of recovery record, parchive can add the extra feature. For example, when you supply 7 archive files, total 7 archive files with recovery record are made.@ECHO OFF.
REM set options for PAR2 client. SET par. 2. By this option, index file isn't created and filename has fixed volume number. When joinning original archive and recovery data, it is important to put original archive at first, then append recovery data at the last. From the nature of ZIP / 7- Zip archive, appended PAR2 recovery data has no effect to extract or decompress. If you want to keep PAR2 file separately, comment out the line of DEL command.
To verify the archive, just Drag& Drop it onto Multi. Par short- cut icon. If you repair the archive, the archive returns to the original form. Then the recovery data is renamed by adding . For example, when you supply 7 folders, GUI are opened 7 times one by one. It is possible to repair by the GUI. When a GUI is closed, next GUI is opened with next PAR2 set.@ECHO OFF.
SET multipar. If you set prefix/suffix to filename at creating time, you need to set same one at verifying time. Add MD5 checksum to each file independently in a selected folder (NTFS only)command. If there is a sub- folder in a folder, files in the sub- folder are searched, too. Checksum data is saved in an alternate stream . Some binary/text editor seems to remove alternate data stream automatically at over- writing. If you modify a file, you will need to re- add checksum to the new file again.
Adding checksum will update files' modification time, even though original file data isn't changed. A user needs to use a special tool to see/delete/copy the stream, because those streams are untouchable by Windows Explorer. While an alternate stream is kept at copy/move between NTFS drives, it will be removed on other file system. For example, you cannot backup data in alternate stream on CD/DVD. Verify each file independently by MD5 checksum in a selected folder (NTFS only)command. If there is a sub- folder in a folder, files in the sub- folder are searched, too. Checksum data must have been saved in an alternate stream .
This is good to notify the end of process to user, while running script.@ECHO OFF. REM set path of sound file. SET WAVPATH=%systemroot%\Media\The Microsoft Sound. REM call Sound Recoder.
WAVPATH%. This sample plays sound by Media Player. Because Sound Recoder cannot play sound on recent Windows OS, Media Player is used in this sample.
This can play any file format which is supported by Media Player.@ECHO OFF. REM set path of sound file. SET WAVPATH=%systemroot%\Media\The Microsoft Sound.
REM set playing time by mil seconds. SET HTA. The script file must be . A user may write any script in this file.
The script gets two parameters from GUI as below; %1 = Path of a recovery file%2 = Path of base directory of source files. This sample script moves created PAR2 recovery files into another folder.@ECHO OFF. TITLE After creation. REM List up parameters.
ECHO Path of this batch file =. ECHO. The script file must be . A user may write any script in this file. The script gets three parameters from GUI as below; %1 = Path of a recovery file%2 = Path of base directory of source files%3 = Exit code of the used client (refer the command- line manual)This sample script opens ZIP or 7- Zip archive only when it is complete.
To use this script, you need to create some recovery files for an archive at first. At that time, the key is setting the base filename to be same as the source file like; source file's name = something. Thus, when you open the index file .