Obexclientsetpath() – Teledyne LeCroy Merlins Wand - Users Manual User Manual

Page 233

Advertising
background image

217

CATC M

ERLIN

S

W

AND

2.00

C

HAPTER

C

User’s Manual

Merlin’s Wand Scripting Commands

“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 server’s OBEX directory with the same name it has on
the client.

Examples

In these examples, the server’s OBEX directory is assumed to be
c:\obexdir.

#store file to "file.txt" in server’s OBEX directory

#

(i.e., c:\obexdir\file.txt)

OBEXClientPut("c:\\temp\\file.txt");

#store file to "newfile.txt" in server’s OBEX dir

#

(i.e., c:\obexdir\newfile.txt)

OBEXClientPut("c:\\temp\\file.txt", "newfile.txt");

#store file to "newfile.txt" in temp dir under OBEX dir

#

(i.e., c:\obexdir\temp\newfile.txt)

OBEXClientPut("c:\\temp\\file.txt", "temp\\newfile.txt");

OBEXClientSetPath()

OBEXClientSetPath(Path, Flags)

Parameter

Meaning

Default Value

Comments

Path

New path to

set

Path is relative to server’s current working direc-
tory. Cannot begin “C:” or “\\\\”.

Advertising