Jump to content
mike_va

How to send http commands on schedule

Recommended Posts


Perfect, this appears to work! Pasted this in notepad

 

iexplore http://root:password@192.168.1.12/cgi-bin/image_adjust?shutter=1_250

 

then saved with a cmd extension. Double clicking it changed the shutter speed. Should be able to use task scheduler. Thanks to all!

 

@echo off
echo SENDING COMMAND TO CAMERA ...
Start /b /wait iexplore "http://root:password@192.168.1.12/cgi-bin/image_adjust?shutter=1_250"
PING 1.1.1.1 -n 2 -w 1000 >NUL
taskkill /f /im iexplore.exe
exit

Thanks again for all the help

 

I think you lost me here too, is there an advantage to the second one? Do these extra lines buy some robustness if the camera does not respond or ?

Share this post


Link to post
Share on other sites

Thanks again for all the help

 

I think you lost me here too, is there an advantage to the second one? Do these extra lines buy some robustness if the camera does not respond or ?

it just opens up IE, then waits 2 seconds, then closes IE ... so you dont have the browser open cluttering up the real estate

 

If you create a minimized shortcut to IE and open that instead you wont even see IE (except in the toolbar). Bottom line ... its cosmetics. The /b and /wait are really not needed in this case but were copied over from other code.

 

You wont get any response status using IE this way.

I dont like depending on other programs if not needed (especially something as volatile as IE), which is why if I were to do it I would just make it a vbscript.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×