Our full technical support staff does not monitor this forum. If you need assistance from a member of our staff, please submit your question from the Ask a Question page.


Log in or register to post/reply in the forum.

File Extension Name Change | EmailRelay from .dat to .txt (or.csv)


ZMS Mar 27, 2019 02:10 AM

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!

Log in or register to post/reply in the forum.