boolean RFTransferFile(BSTR pszSourceFile, BSTR pszTargetFile, boolean bToDevice)
Function RFTransferFile(pszSourceFile As String, pszTargetFile As String, bToDevice As Boolean) As Boolean
Return value
True=successful, False=error, no file, RF link lost, etc.
Parameters
pszSourceFile
the name of the existing source file.
pszTargetFile
The name of the new destination file.
bToDevice
True=From PC to RF device. False=From RF device to PC.
Remarks
The source file must exist. If the destination file exists, the content is
lost and replaced by the new file.
Default file destination in WS client is D: drive.
Example
Public wsRfIo As New RFIO
Public wsRfFile As New RFFILE
Public Sub Main()
wsRfIo.RFPrint 0, 0, " File To PDT ", WLCLEAR + WLFLUSHOUTPUT
bResult = wsRfFile.RFTransferFile("c:\temp\wstst.txt", "wstst.txt", True)
wsRfIo.RFPrint 0, 0, " File From PDT ", WLCLEAR + WLFLUSHOUTPUT
bResult = wsRfFile.RFTransferFile("wstst.txt", "c:\temp\wstst1.txt", False)
End Sub