
how-to block ads
|
|
Share Topic  |
 |
|
|
|
 | reply to jdong
Re: [Windows] Dr. Delete: Remove in-use files! Thanks, Romcat, for that code snippet. Just what I needed. As soon as (1) justin gives me mercy or (2) I get below my posting limit , I'll upload the new one...
P.S.: Romcat, I guess my version was too simple...
OSVERSIONINFO osvi; GetVersionEx(&osvi); switch(osvi.dwPlatformId) { ... }
--Signed, a very embarrassed Beaver Eater (jdong) | |  BachI get Bached down but I get up againPremium join:2002-02-16 Flint, MI Reviews:
·Comcast
| Add one line to your original code it would have probably been OK:
OSVERSIONINFO osvi; osvi.dwOSVersionInfoSize = sizeof(osvi); // add this line GetVersionEx(&osvi); switch(osvi.dwPlatformId)
The dwOSVersionInfoSize needs to be stuffed before the call so that the OS knows what structure you're using (OSVERSIONINFO vs. OSVERSIONINFOEX). The memset to zero I had in my code is probably overkill. | | |
|  jdongEat A Beaver, Save A Tree.Premium join:2002-07-09 Rochester, MI kudos:1 | said by Bach: Add one line to your original code it would have probably been OK.
Silly me, found that info in the MSDN writeup . I'm sorry about that. Usually, I fully read the MSDN writeup before using a program, but oh, what the heck, decided that I should just go for it.... sorry.
Anyway, here's the new/updated version of Dr. Delete. New features since last one:
•Actual OS detection, NT vs 9x. •Added additional messages indicating OS detected. •Added 'trap' for unknown OS'es; in which case you may pick the method of deletion. •Close button next to delete button. •When dragging a file or opening with Dr. Delete, the 'Delete' button is automatically invoked (so you get the 'are you sure' message.
The attached file is RAR Self-Extracting (if you have WinRAR, you may open it with WinRAR, or even if you don't just run the EXE to extract). This contains the EXE plus the source code. This was written in Visual C++ .NET 2003 (ooh, fancy ), and probably will only compile with Visual C++ .NET or .NET 2003...
If you really want to compile it for free, let me know, and I'll write a C# version that can be compiled with free tools. -- Word of advice: Never trust a doctor whose office plants have died... P.S.: Thank you, Optimized, for making me premium! | |
|