about lpCurrentDirectory of CreateProcess parameters
If the value is NULL, the default value is the current process working directory, and then if you want to using new process to delete this directory, we will get access denied error.
by long