Cisco Cisco Agent Desktop 9.0 Referencia técnica
Cisco CAD Service Information 7.1
198
November 2006
The utility finds the location of the *.raw files from the registry. If this information is not
in the registry it assumes that the location is C:\Program Files\Cisco\
Desktop_Audio. The utility writes the converted *.wav files to a folder it creates
located at C:\Program Files\Cisco\Desktop_wav.
in the registry it assumes that the location is C:\Program Files\Cisco\
Desktop_Audio. The utility writes the converted *.wav files to a folder it creates
located at C:\Program Files\Cisco\Desktop_wav.
The utility syntax is:
raw2wav.exe <filename>
where <filename> is either the <name>.to.raw or <name>.from.raw file.
Running raw2wav in a Batch File
You can use the raw2wav utility from a batch file that iterates through a
wildcard-specified set of source files.
wildcard-specified set of source files.
If the utility finds a *.wav file with a name identical to one that is about to be created,
the conversion is not executed.
the conversion is not executed.
NOTE: If the utility is halted prematurely, the *.wav file being written at that
time may be corrupted.
time may be corrupted.
A batch file is a text file with a *.bat extension. You can put DOS commands into this
file and then run the file as if it were an executable.
file and then run the file as if it were an executable.
For example, the following series of DOS commands can be put into a batch file
called convert.bat:
called convert.bat:
c:\
cd c:\program files\cisco\desktop\bin
for %%c in (..\..\desktop_audio\*.raw) do raw2wav
"%%~nc%%~xc"
These DOS commands cause all the *.raw files in the C:\Program
Files\Cisco\Desktop_audio folder to be converted to *.wav format and placed in the
C:\Program files\Cisco\Desktop_wav folder, leaving the original *.raw files in the
Desktop_audio folder.
Files\Cisco\Desktop_audio folder to be converted to *.wav format and placed in the
C:\Program files\Cisco\Desktop_wav folder, leaving the original *.raw files in the
Desktop_audio folder.
Additional lines can be added to the batch file to copy the files to another folder or file
server.
server.
NOTE: The utility has a feature that prevents it from reconverting files that are
already present in the Desktop_wav directory, so the batch file does not have
to explicitly check to see if the files have already been converted.
already present in the Desktop_wav directory, so the batch file does not have
to explicitly check to see if the files have already been converted.