Hello,
I'm wondering if there is a straightforward way to change file extensions when utilizing emailrelay streaming. Currently, table data is emailed as an attachment with a '.dat' file extension. I would like change this to either a .csv or .txt for input into some cloud software.
When in the field tomorrow, I thought I might try within the scan loop, before emailrelay instruction, to use a string comparison to confirm that the undesired file extension is in place. This is on a CR300 with wifi.
//////
NumFiles = FileList("CPU",Files(1)) ' assuming there is one file?
If StrComp(Numflies,"TEST.dat") = 0 then
FileRename("CPU:TEST.dat","CPU:TEST.txt")
EndIf
tx_status = emailrelay(test@gmail.com,"subject",response,Email_Attach,.....)
//////
1. If I mess with this file extension, will the email relay command still produce sequentially numbered files?
2. Is this a good way to go about this? I'm concerned that I will alter the inherent functionality of the emailrelay command...
Any thoughts in short order would be greatly appreciated!!
thanks!