View Full Version : What happens when I've got time to lose
DragonMaster
09-27-2006, 08:56 PM
I had time to lose so I just spent almost 3 hours writing a 175 lines batch file to see the folding stats of my two F@H sessions at the same time instead of looking 4 different .txt files.
There's as much bloat as you want! :roll: Setup utility to select your folders, option for single or dual core stats(they're different), colors, config file detection, setup detects if FAH path is empty or not, if core1 and core2 path are the same, etc. Stats are updated every 10 seconds for single core and every 5 secs for each cores.
Look at the source if you want, there's no "format", "fdisk", "deltree" if you want to be sure, there's just one "del set.bat" used by the setup utility to delete the set.bat file, which is setting the variables when restarting the utility so you don't run the setup again. :mrgreen:
Hmmm... I put so much bloat because I had time to lose, is the same thing happening at Symantec, Microsoft and Apple?
Oct 1st EDIT : Currently working on a new version, which will actually be useful and more efficient. Download this one as you wish.
-foldstat.zip : Bloaty 2-3 days old version
-fahstat.zip : Work In Progress. You can help by testing if options look like they are working well in the setup, it will not create any BAT file by the way!
Mirrim
09-28-2006, 03:47 AM
Hmmm, is there any way to program the console (dos) version that it can reside in your system tray instead of a dos window on your main taskbar?
DragonMaster
09-28-2006, 04:36 PM
Sounds like it could be done with this :
http://www.whitsoftdev.com/trayconizer/
In fact, I think that a quick launch icon without refreshing would be a good solution too.
Just thinking, I could make a version that sends a new updated HTML file every x minutes to an FTP server. This way, people could know what their F@H cores are doing anywhere in the world, in fact TXT files can be read online, even simpler.
Mirrim
09-29-2006, 11:33 PM
Pretty neat, DM. Will have to test that little app out later tonight. Thanks for posting the link!
DragonMaster
09-29-2006, 11:37 PM
The bloaty version is pretty cheesy, I think I should start to work an other version, that doesn't use PING as delay... ;)
XJnine
09-30-2006, 01:47 PM
Mirrim,
if you set the console version to start as a service it will be running when you boot up and there will be no taskbar or system tray icon to worry about. The option is available when you configure the console client using the -config flag.
DragonMaster
09-30-2006, 02:19 PM
Hmmm, is there any way to program the console (dos) version that it can reside in your system tray instead of a dos window on your main taskbar?
Oh, I thought it was the DOS console, not the terminal F@H version, sorry. I run them as a service, never have to turn them on, off, or don't even see them.
DragonMaster
09-30-2006, 04:07 PM
Could anyone test this and tell me if it can actually find their FAH path?
How it works:
under temp folder, there's an fah folder containing f1, f2, etc. that has the PID and path of the FAH consoles. You'll need to unzip and keep both files because of DOS limitations.(That I'm about to fix)
Mirrim
09-30-2006, 11:27 PM
I saw the service flag. Where should I have it auto run from on boot? Startup folder for a shortcut or elsewhere?
DragonMaster
09-30-2006, 11:40 PM
I saw the service flag. Where should I have it auto run from on boot? Startup folder for a shortcut or elsewhere?
Just say that you want it to run as a service and restart the computer. You'll see it in the task manager only. That's where unitinfo.txt and FAHlog come useful.
I'm working on an other version sending stats to an HTML file through FTP.
DragonMaster
10-01-2006, 04:57 AM
OK, I've done a big part of the work on the new version, it can do what the two others I put on the forum are doing and it can also upload an HTML file to an FTP server. I've done a big part of the configuration utility. The big difference here is that the config utility is building a complete BAT file without any variables, it's less bloaty that way. (You run a large setup file and end up with a clean file)
The HTML file will include links to your F@H user statistics and team statistics. I might add a feature to upload FAHlog.txt, or a simplified version to be able to see how many points the unit is, etc.
DragonMaster
10-14-2006, 10:47 PM
Just started working on the FTP version,
here's a demo
http://dmsaudio.zendurl.com/fahstats.htm
That page updates every 15 minutes. ;) (Only when I'm not working on the batch file and decide to runit)
I have a problem, choice, which is used as a delay, has a maximum of 99 seconds, so I have to run it 10 times in a row... Anyone has a solution?
All I know is that it uses only 72kB of RAM
vBulletin® v3.7.0 Release Candidate 3, Copyright ©2000-2008, Jelsoft Enterprises Ltd.