How to delete a directory
C / C++ / MFC
1
Posts
1
Posters
0
Views
1
Watching
-
Hello, I created (_mkdir) a directory from application 1. When I try to remove it (_rmdir) from application 2, I have an error (EACCES). I only can remove it from process 2 after process 1 is closed. I guess process 1 is holding a reference on the opened directories. Is there any mean to "free" all references to directories from one application ? Thanks in advance. PS: 1- The directory I am trying to delete is empty and the current directory is the parent directory. 2 - I tried _rmdir, DeleteDirectory, ShFileOperation Where there is a WISH, there is a WILL.