- Posts: 16
Output file names - can I add date/time ?
- Ken Starnes
- Topic Author
- Offline
- User
Less
More
7 years 5 months ago #3183
by Ken Starnes
Output file names - can I add date/time ? was created by Ken Starnes
Rather than the default name given to a CSV/TXT output I'd like to put in some default text and then append the run date and time.
I guess it's easy when you know how but it's not obvious.
Thanks
I guess it's easy when you know how but it's not obvious.
Thanks
Please Log in or Create an account to join the conversation.
- FlowHeater-Team
- Offline
- Admin
7 years 5 months ago #3184
by FlowHeater-Team
Best wishes
Robert Stark
Did this answer your question? We would be grateful if you provide a brief comment as feedback. It may also help others who may have encountered a similar problem.
Replied by FlowHeater-Team on topic Output file names - can I add date/time ?
Hi Ken,
Yes of course. For example you can use FlowHeater Parameter or system envirnonement varaibles as part of the output CSV file name.
e.g.: %TEMP%\output_$DATETIME$.csv
In this case %TEMP% are dynamically replaced with the value of the system environemnt variable TEMP and $DATETIME$ are replaced with the current value of the FlowHeater Parameter “DATETIME”.
In the Definition you have to set and format the Parameter “DATETIME” by yourself. To do this you need one Now Heater to retrive the current date and time, one String Format Heater to set your desired output format and one Set Parameter Heater to set the value to the Parameter “DATETIME”.
In the attachment you´l find a brief example you it´s works.
Yes of course. For example you can use FlowHeater Parameter or system envirnonement varaibles as part of the output CSV file name.
e.g.: %TEMP%\output_$DATETIME$.csv
In this case %TEMP% are dynamically replaced with the value of the system environemnt variable TEMP and $DATETIME$ are replaced with the current value of the FlowHeater Parameter “DATETIME”.
In the Definition you have to set and format the Parameter “DATETIME” by yourself. To do this you need one Now Heater to retrive the current date and time, one String Format Heater to set your desired output format and one Set Parameter Heater to set the value to the Parameter “DATETIME”.
In the attachment you´l find a brief example you it´s works.
Best wishes
Robert Stark
Did this answer your question? We would be grateful if you provide a brief comment as feedback. It may also help others who may have encountered a similar problem.
Attachments:
Please Log in or Create an account to join the conversation.
- Ken Starnes
- Topic Author
- Offline
- User
Less
More
- Posts: 16
7 years 5 months ago #3187
by Ken Starnes
Replied by Ken Starnes on topic Output file names - can I add date/time ?
Thanks Robert - however I can't open the FHD as it was created in a Beta Version that isn't available to download (I looked at the definition using NotePad++). I have the 4.0.8.2 version.
Please Log in or Create an account to join the conversation.
- Ken Starnes
- Topic Author
- Offline
- User
Less
More
- Posts: 16
7 years 5 months ago #3188
by Ken Starnes
Replied by Ken Starnes on topic Output file names - can I add date/time ?
Have now got the thing working - not always obvious which way/sequence the items should join up.
Please Log in or Create an account to join the conversation.
- FlowHeater-Team
- Offline
- Admin
7 years 5 months ago #3190
by FlowHeater-Team
Best wishes
Robert Stark
Did this answer your question? We would be grateful if you provide a brief comment as feedback. It may also help others who may have encountered a similar problem.
Replied by FlowHeater-Team on topic Output file names - can I add date/time ?
Hi Ken,
Oh sorry, the attachment has been updatet. Now the current version 4.0.8.2 are used.
Oh sorry, the attachment has been updatet. Now the current version 4.0.8.2 are used.
Best wishes
Robert Stark
Did this answer your question? We would be grateful if you provide a brief comment as feedback. It may also help others who may have encountered a similar problem.
Please Log in or Create an account to join the conversation.
Time to create page: 0.289 seconds