A client can issue an execute transaction across a conversation, or in the case of an automatically established conversation, to a recognized server. There is no need to specify a topic, as an execute transaction instructs the server application to execute a command.
The command and its arguments are issued to the server in the form of a string in a standard format (see Execute transactions). LispWorks provides two ways of issuing an execute transaction, namely
(and the corresponding
functions that automatically manage conversations).
dde-execute-string conversation command &key errorp
takes the command to issue in the form of an appropriately formatted string. The following example shows how
can issue a command to a server designated by
on the topic
, in order to open a file called
(win32:dde-execute-string* :excel :system "[open(\"foo.xls\")]")
dde-execute-command conversation command arg-list &key errorp
takes the command to issue, and its arguments, and marshals these into an appropriate string for you. The following example shows how
can issue the same command as in the previous example:
(win32:dde-execute-command* :excel :system `open `("foo.xls"))