Note: The feature described below is only available in the standalone version of PyroBatchFTP, but not in the PyroBatchFTP Server Edition.
DDE-Scripting PyroBatchFTP can work as an DDE server to other applications. Through DDE other applications can feed commands into PyroBatchFTP one by one and immediately examine the results. However, DDE is only offered for compatibility reasons.
Note: Because DDE is a rather ancient Windows standard, we instead recommend to use PyroBatchControl, which is faster, more reliably and which is the preferred method to do feed commands into PyroBatchFTP step by step. See PyroBatchControl description and samples for more details.
DDE Details
PyroBatchFTP can be reached via the DDE application name PyroBatchFTP and topic Cmd.
PyroBatchFTP supports the DDE methods Execute and Request.
If you send a command via DdeExecute you the return code will be 0 if a general error occurs (e.g. syntax error). Return codes other than 0 are the first digit of the command result (e.g. a result of 200 or 250 will return 2, a result of 400 or 499 will return 4, etc.). However, the Execute result code may not be available in all DDE implementation (e.g. it is unavailable in MS Access).
However, it is recommended that you send commands via DdeRequest. In that case a result string is returned that contains the full result code and description (as in the logfile or on screen.).
For details about the supported commands and result codes read script commands and log file. For information about general scripting techniques read the file MANUAL.DOC in the PyroTrans directory (MANUAL.DOC is not available for PyroTransFTP).
For information about DDE and Visual Basic V6.0 please refer to Microsoft Knowledge Base article Q189498.
MS Access Sample
Sub DoDDE()
Dim r As String
' DDE Connection to PyroBatch
PyroDDE = DDEInitiate("PyroBatch", "Cmd")
' call server and transmit file if connection ok
r = DDERequest(PyroDDE, "Connect 09115555555 user xxyy")
If Left(r, 4) = "#200" Then
DDEExecute PyroDDE, "LocalChDir d:\data"
r = DDERequest(PyroDDE, "Put Daten.XLS")
DDEExecute PyroDDE, "Disconnect"
End If
If Left(r, 4) <> "#200" Then MsgBox "Not successful " & r
' Close PyroBatch after DDE connection is closed
DDEExecute PyroDDE, "TerminateAfterScript 1"
' Close DDE Connection
DDETerminate PyroDDE
End Sub
← Back to Scripting Methods