Hi everyone,
I have a camera that seems to be less than reliable when used with iCamSource (details at
http://skjm.com/forum/index.php?topic=916.msg17492) which requires me to click the Stop / Start button to "refresh" the connection to the camera. While its not ideal, clicking that button in the Win7 application seems to do the trick. What I would like to do is setup a BAT file in Windows that basically simulates the click on that button. Is that possible?
I tried a BAT that kills the iCamSource process and then spins up a new one and it kind of worked, but rather than seeing video when the new process started the iCamSource app (on the desktop) just showed a grey box where the video should be. That BAT looked like this:
#change directory
cd "c:\Program Files\iCamSource"
#force kill the existing process
taskkill /f /im iCamSource.exe
#this line adds a little bit of a "sleep" to make sure the previous process is killed off before the new one starts
ping 1.1.1.1 -n 3 -w 3000 > nul
#start a new process
start iCamSource.exe
#close the command line window
exit