WinCEGeräteSE_Handbuch_Programmierung_v3.00_EN
60 / 65
6.4.2.1 Software update with CE proprietary FTP client script
On a Windows CE device, a software update can also be executed via FTP. Several variations are
presented below.
1. FTP download controlled in the application program. FTP-API from ACD can be used for
programming (FTPlib.dll , FTPlib.lib, FTPlib.h).
2. FTP download when booting a Windows CE device. The call for the FTPsimple program must be
added to the STARTUP configuration and configured with the appropriate parameters.
3. Double-tap the icon of an FTP script file to manually launch FTP download.
4. Execute a batch to manually launch FTP download.
Example of an update batch (downloads an update.cab file)
@echo off
FTPsimple.exe -s10.1.2.3 –umyuser –pmypassword -c\myscript.ftp
if not exist update.cab goto ready
\Windows\wceload.exe /noaskdest \Flashdisk\update.cab
:ready
exit
Example of a script file belonging to a batch
Script line
Description
cd update
Switches to the FTP server source directory.
get update.cab
Transfers the CAB file to be installed in the batch.
bye
Logs out and closes FTP connection.
Table 14 – Example of a script file software update