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.
To recursively delete the files in a directory, use the SHFileOperation function.
pFrom Note This string must be double-null terminated.
доки надо читать не по диагонали. тем более если не работает код. Плюс в pFrom надо юзать * указывая все удаляемые файлы как я понял. Опять же из чтения примечаний.
Последний раз редактировалось Ra$cal; 11.10.2009 в 18:54..