Skip to main content

File Movement

DfuPlusExec

STD.File.DfuPlusExec( commandline ] )

commandlineA null-terminated string containing the DFUPlus.exe command line to execute. The valid arguments are documented in the Client Tools manual, in the section describing the DfuPlus.exe program.

The DfuPlusExec action executes the specified commandline just as the DfuPLus.exe program would do. This simply allows you to have all the functionality of the DfuPLus.exe program available within your ECL code.

Example:

IMPORT STD;

serv := 'server=http://10.150.50.12:8010 ';
user := 'username=rlor ';
pswd := 'password=password ';
over := 'overwrite=1 ';
repl := 'replicate=1 ';

action  := 'action=despray ';
dstip   := 'dstip=10.150.50.14 ';
dstfile := 'dstfile=c:\\import\\despray\\timezones.txt ';
srcname := 'srcname=RTTEMP::timezones.txt ';

cmd := serv + user + pswd + over + repl + action + dstip + dstfile + srcname;
STD.File.DfuPlusExec(cmd);