User Manual

Table Of Contents
217
CATC MERLINS WAND 1.22 APPENDIX C
Users Manual Merlin’s Wand Scripting Commands
Comments
This command is obsolete. It is provided for backward compatibility only.
(The application is initialized as an OBEX client at startup and cannot be
deinitialized.)
Example
result = OBEXClientInit();
OBEXClientPut()
OBEXClientPut(LocalPath, RemotePath)
Return value
“Success”
“Failure”
“Failed: Busy”
“Failed: Invalid handle”
“Failed: Invalid parameter”
“Failed: Media busy”
“Failed: Not connected”
“Failed: Packet too small”
Comments
Sends a file to the OBEX directory of the server.
If directory names are included in either path argument, be sure to use
double-slashes to separate components (e.g., “temp1\\temp2\\file-
name.txt”). Using single slashes will cause errors.
Note that the second argument may be omitted, in which case the object
will be stored to the servers OBEX directory with the same name it has on
the client.
Parameter Meaning Default Value Comments
LocalPath Full (not rela-
tive) path and
name of file to
be sent from
client.
RemotePath Path and name
of object to be
stored on
server.
Name-only
portion of
LocalPath
argument
Path is relative to server’s OBEX directory.
Example: If the servers OBEX directory is
C:\Temp, a RemotePath of “file.txtwould cause
the server to save the file to “C:\Temp\file.txt”.
Note that you cannot save a file to an absolute
path on the server.