|
-
May 26th, 1999, 03:14 AM
#1
RemoveDirectory and _rmdir do not work.
The RemoveDirectory(strdir) and _rmdir(strdir) are not working...Any ideas?
-
May 26th, 1999, 03:42 AM
#2
Re: RemoveDirectory and _rmdir do not work.
Did you remember that path strings (if they are literal) need double-backslash characters?
RemoveDirectory("C:\\MyDir\\MySubDur");
Also, the function will fail if there are any files in the directory or you have an active DOS session in that directory.
MJA
-
May 26th, 1999, 03:44 AM
#3
Re: RemoveDirectory and _rmdir do not work.
-
May 26th, 1999, 04:43 AM
#4
Re: RemoveDirectory and _rmdir do not work.
Yes, the strDir path is correct, and the directory structure is empty of files (deleted earlier). There are also no DOS boxes active within the structure. RemoveDirectory gives an "Files being used by another process" error and _rmdir gives no error, but also does not delete. The code is running on WinNT. If you can offer any more help, it would be much appreciated.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|