>Hi all,
>
>I have a problem with RMDIR
>under W2K and XP the command fails with error 1705. If I start the debugger right before the RMDIR and single step it, all works fine. The error parameters hold some nonsense like "File access is denied HEADER2" where I have no idea what HEADER2 is.
>
>The scenario I run into this:
>
>I create a temporary directory somewhere on my local drives with SYS(2015)
>I create some DBC within this.
>I close all tables
>I zip the files in that directory once with dynazip
>I use GetAllZipFileInfo to get information about the zipped files
>I use the CRC from this to create a password for the zipfile
>I zip all files again with password and autodelete
>I CHDIR to a differnt location
>I RMDIR the temporary directory
>
>Under Win98 and NT this runs fine, under W2K and XP it crashes.
>
>Any idea to work around this?
Try erasing all the files in the temporary directory before issuing the RMDIR - RMDIR will not remove folders containing files or subfolders under some OS versions.
>
>TIA
>
>Agnes