I am attempting to start recording the screen using Camtasia however am triggering this using a batch file.
As i need the recordings to be 30 seconds long, i have a secondary batch file. It doesn't work as intended as i would like to avoid multiple windows executing the commands opening. I know the command taskkill
isn't correct and have included it to illustrate what i am intending to achieve.
The batch files need to be able to run on both Windows 7 and Windows 8 devices.
The process is started with a starting batch file that launches the secondary batch file to commence the countdown.
StartFile.bat
start EndFile.bat
"C:\Program Files\TechSmith\Camtasia Studio 8\CamRecorder.exe" /record
EndFile.bat
timeout /T 30 /NOBREAK
"C:\Program Files\TechSmith\Camtasia Studio 8\CamRecorder.exe" /stop
timeout /T 30 /NOBREAK
taskkill /f /im StartFile.bat <-- To kill the first batch file so there aren't multiple windows
start StartFile.bat <-- To create a new instance of the starting batch file.
exit