Batch file

Should be 1 file (eg with Notepad in Windows) and put it in the folder "IP Webcam DCS950":

 

file image2ftp.bat

Containing this:

echo open FTP_SERVER > temp
echo user LOGIN PASSWORD >> temp
echo binary >> temp
echo put uploadwebcam.jpg >> temp
echo bye >> temp ftp -inv -s:temp
del temp

(*Indicate the name of your FTP server, your username and your password).

The Windows Scheduler must run the file "image2ftp.bat"

If the webcam image is not downloaded to the root of the website, you will specify the path to the folder where the image should be uploaded. Before the line of instruction "put", insert the path to the folder like this, eg: "echo cd my_webcam"

If you do not want to see the MS DOS window, you must make a shortcut to the file "transfert.bat", then right click on it, in the tab "Shortcut", select in the "Run" field: "Reduced".(The Windows Scheduler to run the shortcut file "image2ftp.bat")


Fichier batch

Il faut faire 1 fichier (par exemple avec le bloc-notes de Windows) et le mettre dans le dossier de "Webcam IP DCS950":

fichier image2ftp.bat

Contenant ceci:

echo open SERVEUR_FTP > temp
echo user LOGIN PASSWORD >> temp
echo binary >> temp
echo put uploadwebcam.jpg >> temp
echo bye >> temp ftp -inv -s:temp
del temp

(*Indiquer le nom de votre serveur FTP, votre nom d'utilisateur et votre mot de passe).

Le planificateur Windows devra lancer le fichier "image2ftp.bat"

Si l'image de la webcam n'est pas téléchargée à la racine du site web, il faudra préciser le chemin du dossier dans laquelle l'image devra être téléchargée. Avant la ligne de l'instruction "put", insérer le chemin du dossier comme ceci : "echo cd ma_webcam"

Si vous ne voulez pas voir apparaître la console MS DOS, vous devez faire un raccourci du fichier "transfert.bat", puis, clic droit sur celui-ci, dans l'onglet "Raccourci", indiquer dans le champ "Exécuter": "Réduite". (Le planificateur Windows devra lancer le raccourci du fichier "image2ftp.bat"


MaH 4/2009