- Posts: 16
Output file names - can I add date/time ?
- Ken Starnes
- Topic Author
- Offline
- User
Less
More
7 years 7 months ago #3183
by Ken Starnes
Output file names - can I add date/time ? - Post(3183) 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 7 months ago #3184
by FlowHeater-Team
Best wishes
Robert Stark
Replied by FlowHeater-Team on topic Output file names - can I add date/time ? - Post(3184)
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
Attachments:
Please Log in or Create an account to join the conversation.
- Ken Starnes
- Topic Author
- Offline
- User
Less
More
- Posts: 16
7 years 7 months ago #3187
by Ken Starnes
Replied by Ken Starnes on topic Output file names - can I add date/time ? - Post(3187)
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 7 months ago #3188
by Ken Starnes
Replied by Ken Starnes on topic Output file names - can I add date/time ? - Post(3188)
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 7 months ago #3190
by FlowHeater-Team
Best wishes
Robert Stark
Replied by FlowHeater-Team on topic Output file names - can I add date/time ? - Post(3190)
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
Please Log in or Create an account to join the conversation.
Time to create page: 0.285 seconds