WinCEGeräteSE_Handbuch_Programmierung_v3.00_EN
58 / 65
Word from the command line
Description
ftp
Calls the FTP client program belonging to Windows.
-v
Suppresses the display of messages returned from remote
servers.
-i
Disables interactive input when several files are transferred.
-s:FTPUpdate.txt
Transfers script file with the executable FTP commands.
%1
Defines the IP address or name of the various Windows CE
devices.
Table 11 – FtpUpdate command line parameters
FTP script file FTPUpdate.txt
Script line
Description
myusername
User name
mypassword
Password
binary
Switches to binary transfer mode.
cd \flashdisk
Switches to the target directory of the Windows CE device.
put UpdateCE.bat
Transfers update batches with the next boot of the Windows CE
device.
put xyz.CAB
Transfers the CAB file to be installed by UpdateCE.bat the next
time the Windows CE device is booted.
bye
Logs out and closes FTP connection.
Table 12 – FTP script file
6.4.2 FTP client function (Windows CE device as client)
In addition to the FTP server service, the FTPSimple program (separate documentation
8
available) is
available as an FTP client to access remote FTP servers from the CE device.
The FTPsimple program uses FTPlib.dll, a proprietary ACD library which provides programmers with a
simple API to generate their own FTP client programs. FTPlib.dll is described in more detail in another
document
9
.
FTPsimple is a console program which means that it is batch-compatible and can be used to execute FTP
script files. FTPsimple can transfer the script file in the command line (batch) for execution or enter the
command “script” in the console window.
A script file must be saved in the ANSI format and can contain any number of FTP command sequences. As
soon as the first error occurs in a script sequence, the sequence will be aborted, the error message
displayed and the device waits for a manual command.
8
FTPSimple_SoftwareDocu
9
FTPLib_Programmer API