Posted by: cliff 2008-10-25 01:32:36 Last edited by: Jeff Glatt 2009-03-04 14:03:51 (Total edited 2 times)
My script copies a selected directory (w/sub directories & files)to a different directory. After the copy is completed I want to delete the original directory. but
DIR(fromdir, 'D')
doesn't delete the dir. The directory I'm trying to delete has sub-directories, sub-sub directories etc. but no files.
cliff:-)
2.
#12481
Posted by: Jeff Glatt 2008-10-25 11:27:01 Last edited by: Jeff Glatt 2009-03-04 14:02:47 (Total edited 1 time)
You need to delete the entire contents of a directory before you can delete the directory. The contents include all subdirectories (and any files in those subdirectories).
For an example of deleting an entire directory tree, see "Files/Directories/Devices -> Create/Delete a directory", and scroll down to the DeleteFolder example.