Create Batch files to save error log and recipe output in unique files
|Opened on:||Thursday, July 31, 2014 - 19:43|
|Last modified:||Friday, August 1, 2014 - 22:53|
When running a recipe, Foldit creates a file called scriptlog.default.xml, and over writes the previous contents of this file. A batch file called o.bat will copy the information to a file in the C:\FolditLogs directory. This batch file should be run immediately after the script terminates, so that the data will not be overwritten.
copy C:\Foldit\scriptlog.default.xml C:\FolditLogs\%1_output.txt
When Foldit starts up, it creates a file called log.txt and over writes the previous contents of this file. When Foldit crashes, it is useful to get a copy of the log.txt file which may contain useful information for the development team. A batch file called e.bat will copy the information in the error log to a file in the C:\FolditLogs directory. After a crash it imperative to run this file immediately so that the contents of the error log are not overwritten.
copy C:\Foldit\log.txt C:\FolditLogs\%1_error_log.txt
To set up the commands do the following:
Create a file directory C:\FolditLogs.
Create batch files e.bat and o.bat in that directory.
Copy the copy command texts to the appropriate batch files.
To use the commands do the following:
Open the Window file tool and get in the C:\FolditLogs directory.
Open a DOS window and type “e Jul31” to create a file called Jul31_error_log.txt in the C:\FolditLogs directory.
Open a DOS window and type “o puz947Jul31” to create a file called puz947Jul31_couput.txt in the C:\FolditLogs directory.
Versions of this for Macs and Linux systems should appear.