A tool that can decompress your data quickly and make it easily accessible for you. #Zip extractor zip fileHowever, if you want to extract data from your zipped files, you need a zip file extractor. Was causing the problem.It’s common knowledge that compressed zip files are easy to share and help to free space on your disk. Points of InterestĪs I mentioned, it was a real battle tracking down the reason why I was getting blue screens, I tried both DotNetZip and J#'s zip extraction methods, and both had the same result.įinally, I found that if I turned off updating my ProgressBar, there were no blue screens! The Dispatcher.BeginInvoke (or Invoke) #Zip extractor how toThe author also shows how to define your own program entry point rather than the abstracted one WPF uses by default. Apparently, you can only hook into keyboard modifiers with. I tweaked it just a bit for this program but it's pretty close to what the author posted. The final interesting piece of the program is the KeyboardHook class. Trace.WriteLine( string.Format( " Extracting ",įile.FullName, Environment.NewLine + ex.ToString())) #Zip extractor codeThe Created event is fired, then the Deleted, then the Changed again, so it must be renaming the file in a way that comes across as a delete.Īnyhow, the Changed event coupled with checking whether the file exists seems to catch everything.Ĭopy Code private void ExtractFiles(FileInfo files) So I needed to handle the Changed event instead of the Created event, and in the Changed event, check to see if the file exists. Firefox and IE handle file downloads differently The NotifyFilters are just right so that it gets notified whenĪ new Zip file is downloaded, copied, or renamed, and it works with IE and Firefox as well as network copy's. The application uses a FileSystemWatcher to monitor the chosen directory. You could probably retargetįor 2.0 if you remove the keyboard hooks. NET 4.0 framework installed to allow for keyboard shortcuts to work correctly. Up on top of other windows so you should be able to hit Ctrl+K+Enter and you get auto extraction! It uses the Windows APIs to ensure the window always pops If you don't want it popping in your face every time a Zip file is added to the folder, you can turn that option off in the settings and useĪ keystroke command Ctrl+K (or whatever key you choose) to pop up the window instead. It automatically pops up when new Zip files are availableĪnd all you have to do is select the file(s) you want to extract and hit Enter, and it unblocks the Zip file, extracts it to a directory with the same nameĪs the Zip file, deletes the Zip file, opens the extracted folder, and hides itself back in the system tray again. It's like so many other things in Windows, too much clicking and too many steps! Then, on XP machines, there's the problem that if the the Zip file hasĪ ton of files inside which aren't inside of a sub-folder, you get a hundred files extracted to the same directory as the Zip file!ĪutoExtractor unobtrusively sits in your system tray and monitors a directory you choose. Do you get annoyed when you have to do so many things just to open up a compressed file you just downloaded? You have to (Vista+):
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |