In Esker SmarTerm 16, does anyone know a way to open a variable-named capture file using a Smarterm Macro?
basically I want to open capture files named 'host-timestamp.log'
but even when using something simple like this:
It fails to open the capture file and returns a 0
The exact code Im using is:
Dim HostName as String
Dim TStamp as Date
Dim CPath as String
Dim Fname as String
'end any previous captures still running
'HostNam = Circuit.TelnetHostName
If Circuit.Connected Then
HostNam = Word$(HostNam,1)
CPath = "C:\Subd\"
TStamp = Now()
Fname = "'" & CPath & HostNam & "-" & TStamp & ".Log" & "'"
'Set to Append
IF retval = FALSE Then
session.echo "Capture failed to start"
any help is appreciated!