DelEmpty - lists/erases empty dirs
Moderators: Hacker, petermad, Stefan2, white
DelEmpty - lists/erases empty dirs
Hi,
Having seen many requests / questions about how to easily delete empty dirs, I wrote a small tool that can do this.
http://thehacker.host.sk/myfiles/ and there DelEmpty.zip.
Sources are available upon request.
HTH
Roman
Having seen many requests / questions about how to easily delete empty dirs, I wrote a small tool that can do this.
http://thehacker.host.sk/myfiles/ and there DelEmpty.zip.
Sources are available upon request.
HTH
Roman
Darnit no, I don't know, I can reproduce it, though. This time I used the Win32API removedirectory function with the dirname as parameter. Would someone take a look at the code, please? It's rather short. I'll upload it tomorrow. And I'll try to add some debug info. Anyways, we'll see.
And does someone know where to get the newest version of the Win32API Help?
TIA
Roman
And does someone know where to get the newest version of the Win32API Help?
TIA
Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
If you're patient...
2Hacker
Hi Roman,
Friendly regards,
Claude
Clo

• Following my friend Pierre Gougelet (XnView), have a look at msdn.com ...And does someone know where to get the newest version of the Win32API Help?

Claude
Clo
#31505 Traducteur Français de T•C French translator Aide en Français Tutoriels Français English Tutorials
Mess---
2Hacker
• Sorry, I didn't get the exact archive file-name from Pierre...
To find anything at MS' is a pretty mess, especially when it's for free.
Maybe could you try a search using the old version file-name ?
KR
Clo
• Sorry, I didn't get the exact archive file-name from Pierre...
To find anything at MS' is a pretty mess, especially when it's for free.

Maybe could you try a search using the old version file-name ?

Clo
#31505 Traducteur Français de T•C French translator Aide en Français Tutoriels Français English Tutorials
Well, the problem is that there is no single filename... when I installed Delphi then these help files got installed under Program Files\Common Files\Borland Shared\MSHelp\ and there are about 20 HLP files each called by win32.hlp AFAI understand it.Maybe could you try a search using the old version file-name ?
Oh well. Thanks for trying.
Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
Hi Roman, what exactly is the problem, finding that the dir is empty or deleting it?
Following is an excerpt from RemoveDirectory MSDN specs, note the return value that you can check and also GetLastError. Check the remark it might be that your problem is a direct result of it.
Following is an excerpt from RemoveDirectory MSDN specs, note the return value that you can check and also GetLastError. Check the remark it might be that your problem is a direct result of it.
Return Values
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero. To get extended error information, call GetLastError.
Remarks
The RemoveDirectory function marks a directory for deletion on close. Therefore, the directory is not removed until the last handle to the directory is closed.
- ghisler(Author)
- Site Admin
- Posts: 50386
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
I would, please send it by e-mail or post it to your site.Would someone take a look at the code, please?
Btw, if you recursively search subdirs for contained empty dirs, don't forget to call FindClose() on the dir handle, otherwise the dir cannot be deleted.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Online install: http://www.microsoft.com/msdownload/platformsdk/sdkupdate/Hacker wrote:I have been doing that for the last 30 minutes and couldn't find any downloadable help files regarding the Windows SDK there... (
Roman
Full download: http://www.microsoft.com/msdownload/platformsdk/sdkupdate/psdk-full.htm