|
nkormanik
|
 |
« on: June 17, 2012, 08:31:42 PM » |
|
Here's another request: I'm creating image files from a statistics program. Total image files = 16,110. Time needed to create each image file = 30 seconds. Total needed time to create all image files (on computer off to the side) = 5 days. I've minimized all the windows. Periodically I right-click on the folder where the image files are being created, and bring up the "Folder Properties" to see how many files have so far been created. Windows "Folder Properties" window is not 'dynamic' -- it does not automatically update as new files are created within it. What I have in mind is a little program that shows a small window with the following: --- Folder being monitored --- Number of files currently in the folder The font should ideally be reasonably large in size, maybe even user-configurable. The 'refresh' time should be perhaps a minute or so, possibly user configurable. User should be able to move the window around on the desktop, for optimal placement. The idea is for user to glance over at the computer doing the work and see that the number of files in the monitored folder is steadily increasing, and will have an idea about total completion of the file-creation project. ===== Another approach would be to create within the "Folder Properties" window a way to refresh the information (button to click on periodically), or to auto-refresh it. ===== There may be other already existing approaches to the problem. If anyone knows of one, please post. Thanks much. Nicholas Kormanik nkormanik@gmail.com
|
|
|
|
|
Logged
|
|
|
|
|
4wd
|
 |
« Reply #1 on: June 17, 2012, 11:16:27 PM » |
|
Try this: FolMon  Instructions: Huh?! Just run it, the Path button allows you to choose a folder to monitor. When it closes it will save the folder being monitored to an ini file so it can use it next time it starts. You can close it two ways: a) Click the Window Close gadget, b) Use the Exit button. Edit the ini file to change the colours, they are in RGB format. Background=0x000000 Text=0xFFFF00 You can have multiple instances running, even from the same folder - just rename the executable, an ini with the same name will be created upon exit. Input boxes are read-only. UPDATE (0.2): - Fix: Window title wasn't updated if executable name was changed.
- Added: Statusbar shows the latest created file, (updated at the same time as window title).
|
|
|
« Last Edit: July 05, 2012, 03:38:33 AM by 4wd »
|
Logged
|
Four wheel drive: Helping you get stuck faster, harder, further from help...........and it's no different on this forum 
|
|
|
|
nkormanik
|
 |
« Reply #2 on: June 17, 2012, 11:23:10 PM » |
|
How about THAT.
Precisely what was asked for. And auto-updating.
Can we assume that it won't be interfering too much with the file-creation process being monitored?
Thank you so much!!
|
|
|
|
|
Logged
|
|
|
|
|
|
4wd
|
 |
« Reply #3 on: June 17, 2012, 11:32:29 PM » |
|
Can we assume that it won't be interfering too much with the file-creation process being monitored? Shouldn't, all it does is return directory statistics. It's not recursive either, although you could make it easily enough by changing one parameter.
|
|
|
|
« Last Edit: June 18, 2012, 01:30:15 AM by 4wd »
|
Logged
|
Four wheel drive: Helping you get stuck faster, harder, further from help...........and it's no different on this forum 
|
|
|
|
nkormanik
|
 |
« Reply #4 on: June 17, 2012, 11:41:44 PM » |
|
Pretty close to perfect.
Although it does the trick very, very well -- and I'm using it right this minute -- two possible enhancement requests:
-- change background color to some color darker than white. I'll leave it running on my desktop, and am always concerned about monitor burn-in image caused by white.
-- when the program is minimized in the task bar, allow it to show the data (at least number of files) as opposed to the title.
But, as I say, as it is now works great. Thanks a million.
Sure hope other people use this stuff. It's quite good.
|
|
|
|
|
Logged
|
|
|
|
|
4wd
|
 |
« Reply #5 on: June 17, 2012, 11:53:59 PM » |
|
-- change background color to some color darker than white. I'll leave it running on my desktop, and am always concerned about monitor burn-in image caused by white. Should be easy enough. -- when the program is minimized in the task bar, allow it to show the data (at least number of files) as opposed to the title. Might have to do some reading on getting that done - what OS are we talking about, (just in case there are differences) ?
|
|
|
|
|
Logged
|
Four wheel drive: Helping you get stuck faster, harder, further from help...........and it's no different on this forum 
|
|
|
|
nkormanik
|
 |
« Reply #6 on: June 18, 2012, 12:00:38 AM » |
|
Windows XP Pro, with latest updates.
No need to do the second if you do the first. Light grey, light blue, any....
Again, thanks!
|
|
|
|
|
Logged
|
|
|
|
|
4wd
|
 |
« Reply #7 on: June 18, 2012, 12:25:32 AM » |
|
OK, here's the colourised version  (See attachment here) Just copy over the old version and run it, the colour defaults to Yellow on Black, (except for the two buttons - yes, that's right! A whole new button!). You can change the colours by editing the ini file, exit the program first otherwise it'll just overwrite the ini file when you do exit it. Colours are in RGB format: Background=0x000000 Text=0xFFFF00 Pretty self-explanatory, here's a list of RGB values. Now that it has an Exit button, (dang it - just ruined the surprise!), I might change it to a borderless window. (More reading.) Or I could make it buttonless and you use the keyboard or a menu on the tray icon.
|
|
|
|
|
Logged
|
Four wheel drive: Helping you get stuck faster, harder, further from help...........and it's no different on this forum 
|
|
|
|
nkormanik
|
 |
« Reply #8 on: June 18, 2012, 12:31:02 AM » |
|
Fantastic.
I'm enjoying the first iteration, and will even more this second one.
Sleep well.
|
|
|
|
|
Logged
|
|
|
|
|
nkormanik
|
 |
« Reply #9 on: June 18, 2012, 12:49:50 AM » |
|
New look is super!!
|
|
|
|
|
Logged
|
|
|
|
|
4wd
|
 |
« Reply #10 on: June 18, 2012, 01:26:51 AM » |
|
Another update, see first post for file. Window title gets updated with the number of files in the folder. NOTE: This only happens every 60 seconds - more frequently pushes CPU usage up too high AFAIAC, (~10%), and it won't change until a minute has passed after running it, (meh - I'm lazy). So you will get discrepancies between the two numbers until the title gets updated.  So this means your Taskbar label gets updated with the number of files 
|
|
|
|
|
Logged
|
Four wheel drive: Helping you get stuck faster, harder, further from help...........and it's no different on this forum 
|
|
|
|
nkormanik
|
 |
« Reply #11 on: June 18, 2012, 03:48:32 PM » |
|
The Window title feature is great, too, because it's a much larger font, and easy to see.
Useful little program. I presently have it running on two different computers -- one to my left, one to my right -- while I work on a third. At a glance I can see that the underlying operations are chugging along, adding image files to the folders being monitored.
Hopefully others can think of additional ways of using FolMon, so that you can add more goodies, as you are obviously on a roll.
Thanks again!
|
|
|
|
|
Logged
|
|
|
|
|
4wd
|
 |
« Reply #12 on: June 18, 2012, 09:55:24 PM » |
|
OK, I think I'm there now:  - Updates the file/size count every 1000 milliseconds.
- Updates the Window title every 5000 milliseconds.
- Font is a bit bigger (14pt).
Changing the update intervals dropped CPU usage back down to 0-1% on my computers. See above for archive.
|
|
|
|
« Last Edit: June 18, 2012, 10:14:33 PM by 4wd »
|
Logged
|
Four wheel drive: Helping you get stuck faster, harder, further from help...........and it's no different on this forum 
|
|
|
|
nkormanik
|
 |
« Reply #13 on: June 18, 2012, 11:27:51 PM » |
|
Unreal. Terrific job!
|
|
|
|
|
Logged
|
|
|
|
|
4wd
|
 |
« Reply #14 on: June 18, 2012, 11:46:15 PM » |
|
Thanks, I think we can get skwire to move this into the Finished area now 
|
|
|
|
|
Logged
|
Four wheel drive: Helping you get stuck faster, harder, further from help...........and it's no different on this forum 
|
|
|
|
nkormanik
|
 |
« Reply #15 on: June 18, 2012, 11:49:58 PM » |
|
Amen to that.
|
|
|
|
|
Logged
|
|
|
|
|
4wd
|
 |
« Reply #16 on: July 05, 2012, 03:37:41 AM » |
|
Update up there. UPDATE v0.2: - Fix: Window title wasn't updated if executable name was changed.
- Added: Statusbar shows the latest created file, (updated at the same time as window title).
|
|
|
|
« Last Edit: July 05, 2012, 04:31:54 AM by 4wd »
|
Logged
|
Four wheel drive: Helping you get stuck faster, harder, further from help...........and it's no different on this forum 
|
|
|
|
nkormanik
|
 |
« Reply #17 on: July 05, 2012, 03:03:21 PM » |
|
Excellent work, 4wd. Been running on three computers since you created it!
Keeps me immediately appraised of the on-going progress in those subdirectories monitored.
Additionally, seems an excellent way of showing which computer -- for whatever reason -- is faster or slower. If folders on the three computers start empty, and the running process is the same, computer most rapidly ticking up the file count is fastest. FolMon at a glance shows that.
|
|
|
|
|
Logged
|
|
|
|
|