ok, heres a slightly adapted version of the db example for directory deletion :
rem ============================================
rem DARK BASIC EXAMPLE PROGRAM 15
rem ============================================
rem This program handles directory creation
rem --------------------------------------------
rem Create a directory if not exist
if path exist("c:\mydir")=0
make directory "c:\mydir"
print "Directory created.."
endif
rem Wait for keypress
print "Press Any Key"
suspend for key
rem Remove directory if it exists
if path exist("c:\mydir")=1
delete directory "c:\mydir"
print "Directory destroyed.."
endif
rem End of program
end
the only change to it is I alterd the path of the dir from "mydir" to "C:\mydir" to make it easier to locate.
could you try this for me :
run the code, and with out closing DB, ( minimise it ), see if the directory is still on c drive, and can you delete it in windows ?
is there a bug in the comand ?
or is it just my pc ?