Main Area and Open Discussion > General Software Discussion
MD5Hash 2.9
MilesAhead:
MD5Hash 2.3 Now has /main command line switch. Only one param should be specified on the command line. Either the switch /main (not case sensitive) or the name of a file or folder.
When run with /main, MD5Hash attempts to set itself up as the "main instance" of the application. If it succeeds it will show MD5Hash Main in the caption bar instead of just MD5Hash.
With a Main instance running, if you select 20 files in Explorer, right click and choose MD5Hash in the context menu, each copy that loads will send the file or folder name to the main instance, then close, instead of getting one result in each copy.
If you want to have more than one copy running, for example if you have more than one physical hard drive and want to process a large file on each drive, simply start MD5Hash in the normal way with no Main copy running.
To start a Main copy, if you don't like command line, I recommend creating a shortcut with the /main after the exe name as in this Target line:
c:\md5hash\md5hash.exe /main
Note: when file or folder name is specified on the command line, do not wrap with quotes even if it has spaces. This will cause processing of that item to fail. The entire command tail is read as one string so quotes are not needed.
edit: Readme files updated.
MilesAhead:
MD5Hash 2.4 Updated label on main dialog.
MD5Hash is also available for download on Softpedia. I just informed them of this update. But since they just link their download to my site anyway, whichever download link you use gets the same zip file. :)
MilesAhead:
MD5Hash 2.5 Version 2.5 is functionally the same. It uses a semi-transparent skin on Windows 7.
MilesAhead:
MD5Hash 2.6 Bug fix. Some controls weren't properly disabled when a filename was sent by a secondary instance of the application.
Now handles WM_DWMCOMPOSITIONCHANGED Windows message. If Aero or transparency is toggled while the app is running it should adjust to remain usable.
MilesAhead:
MD5Hash 2.7 The /main command line switch has been dropped. The first MD5Hash to run sets itself as the main instance automatically.
If you have the switch set in any shortcuts please remove it to avoid errors. I found the main way I launch the app is using the Explorer Context Menu. I originally used the "/main" command line switch due to race condition paranoia(one copy may run and try to create the hidden window, then the other might get there before the window class is registered and stuff may not work blah blah.) But other bugs are much more likely to happen than this theoretical race condition. So, I just removed the test for the switch and if the message only window does not yet exist, it launches a thread to create it and service the messages, so that command lines from later copies of the app can be passed along.
What's it mean? If stuff works, then forget about it. If you notice weird stuff instead of normal stuff, please let me know. I tried it on both my machines and it seems to work the way I want. So I'll try it as is for now. If it really needs to be fixed I can always stick a semaphore creation routine on. But I suspect creating the window will work just as well.
The upshot is, now you don't need to have a copy already running to avoid Explorer opening like 100 if you right click on 100 files. 100 will open, but 99 will close after the command line is passed along.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version