I have some code that creates some dirs using CreateDirectory(), which are temporary and need to be removed later.
Initially I wrote the code on Win98 using RemoveDirectory() and there was no problem, I have since tried to execute the code on Win2000 and now the directories won't be removed. The interesting thing is, sometimes it would work and a dir would be removed, but mostly it won't remove them at all.
I have tried a system call with the DOS command 'rmdir' as well, but same problem. I realise it may be the permissions on 2000, but I jsut use CreateDirectory with NULL set for the security attributes paramater, so I assume the directories created are removeable as normal, as I can delete manually from explorer.
If anyone has experienced a similar problem or can offer some help it is greatly appreciated.
Initially I wrote the code on Win98 using RemoveDirectory() and there was no problem, I have since tried to execute the code on Win2000 and now the directories won't be removed. The interesting thing is, sometimes it would work and a dir would be removed, but mostly it won't remove them at all.
I have tried a system call with the DOS command 'rmdir' as well, but same problem. I realise it may be the permissions on 2000, but I jsut use CreateDirectory with NULL set for the security attributes paramater, so I assume the directories created are removeable as normal, as I can delete manually from explorer.
If anyone has experienced a similar problem or can offer some help it is greatly appreciated.