Dear All,
I've written a script (actually 2, one for camera) to record the audio through the microphone using the windows tool (sound recorder).
The script is working, in fact, if I double click on it or run it on the command promt the record start; but, if I insert the file path (in 8.3 format) on the line "Run the command"(on your software) and click "test" the record doesn't start (it appear a cmd windows for a second but doesn't show any error message).
I attach one of the two script (the difference is the name of the directory which to save the record):
for /f "delims=" %%a in ('wmic OS Get localdatetime ^| find "."') do set dt=%%a
set datestamp=%dt:~0,8%
set timestamp=%dt:~8,6%
set YYYY=%dt:~0,4%
set MM=%dt:~4,2%
set DD=%dt:~6,2%
set HH=%dt:~8,2%
set Min=%dt:~10,2%
set Sec=%dt:~12,2%
set stamp=%DD%-%MM%-%YYYY% %HH%.%Min%.%Sec%
echo stamp: "%stamp%"
echo datestamp: "%datestamp%"
echo timestamp: "%timestamp%"
Start %SystemRoot%\system32\SoundRecorder.exe /File H:\Archivio\Sorveglianza\Audio\Soggiorno\%stamp%.wma /duration 0000:02:00
Thank you and best regards,
Matteo.
