What would the script for "Save" the ctl file which is currently run?
The problem I have is as below ;
(1)We start up and shut down a ctl program every day where logging is carried out
in a sequence such as below:
logging.log.strFileName = "C:\DailyLog" + formatdateTime("%y%m%d",systime()) + ".csv"
(This line is run every 10 seconds.)
Closing the ctl file is carried out by "System.Quit()" command.
(2)The problem is, a log file is made at once when the ctl is started whose name does
correspond to today, but to the day when this ctl file was made.
(After the first log file is made, another log file with proper name
corresonding to today is created later.)
(3)I estimate the reason that the first log file is made before the sequence is run,
therefore made on the default information kept on the logging set.
(4)In order to test this hypothesis, I saved the ctl file by "Save",
then the newly saved ctl file stopped to create the log file with wrong name.
(5)Thererfore I think it effective for avoiding the problem above
to put in and run everyday a sequence where "Save" is carried out.
Thank you in advance.
asaikkMember Since 09 Feb 2012
Offline Last Active Nov 14 2012 12:16 AM
- Group Members
- Active Posts 48
- Profile Views 557
- Member Title Member
- Age Age Unknown
- Birthday Birthday Unknown