Cleaning up stuff -

Kenneth Brody kenbrody at spamcop.net
Tue Oct 27 16:31:32 PDT 2009


Nancy Palmquist wrote:
> I have a process on a WINDOWS system, using filePro 5.0 that creates a 
> folder, writes many pcl documents in the folder, translates all the 
> documents to .tif (that is written to another folder).
> 
> Once the files are translated, I want to clear the files in the folder, 
> which I can do.  But I am unable to remove the empty folder at the end.
> 
> P:\PCL\20091027  would be the folder name sample.  My tiff translator 
> does not like more than 64 files per folder, so I just continue and make 
> folders with A-Z appended to the name.
> 
> I can clean out the files but
> system "rmdir P:\PCL\20091027" will not work.
> 
> Anyone got a solution to this one?

Is the directory empty?  (You can't "rmdir" a non-empty directory.)

If this is an NT-based system (ie: not Me, 98, 95), then try:

system "rmdir p:\pcl\20091027 & pause"

(The "&" is Windows' command separator, like ";" on Unix.)

This should allow any error message to remain on the screen until you press 
a key.

-- 
Kenneth Brody


More information about the Filepro-list mailing list