User Manual

Table Of Contents
219
CATC MERLINS WAND 1.22 APPENDIX C
Users Manual Merlin’s Wand Scripting Commands
Comments
Temporarily changes a server's current working directory, accessed by cli-
ents during ClientGet and ClientPut operations. The device must be
connected to an OBEX server before the command can be successfully
executed. The change is lost when the connection is broken. Note that the
servers OBEX root directory cannot be changed with this command.
If the path includes multiple levels, be sure to use double-slashes to sepa-
rate components (e.g., “temp1\\temp2”). Using single slashes will cause
errors.
Example
#set path to <root>
status = OBEXClientSetPath("", 0);
Sleep(1000);
#set path to <root>\temp2
status = OBEXClientSetPath("temp2", 0);
Sleep(1000);
#set path to <root>\temp2\temp3
status = OBEXClientSetPath("temp3", 0);
Sleep(1000);
#set path to <root>\temp2
status = OBEXClientSetPath("", 1);
Sleep(1000);
#keep path at <root>\temp2 (assuming <root>\temp2\temp4
doesn't exist)
status = OBEXClientSetPath("temp4", 2);
Sleep(1000);
#set path to <root>\temp3\temp4
status = OBEXClientSetPath("temp3\\temp4", 1);
OBEXServerDeinit()
OBEXServerDeinit()
Return value
“Success”
“Failure”
Parameter Meaning Default Value Comments
N/A