Guidance
指路人
g.yi.org
Guidance Forums / Reginald Rexx / DIR 'D' doesn't delete

Register 
注册
Search 搜索
首页 
Home Home
Software
Upload

  
Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next First 1 Last
Message1. DIR 'D' doesn't delete
#12475
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:-)
Message2.
#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.
Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next First 1 Last
掌柜推荐
 
 
 
 
 
 
 
 
 
 
 
 
© Tue 2024-4-23  Guidance Laboratory Inc.
Email:webmaster1g.yi.org Hits:0