Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CFDIRECTORY/ CFFILE: deleting selective files

Status
Not open for further replies.

neomorpheus

Programmer
Mar 9, 2001
47
US
I have a situation where there was an error in the code while uploading files that the temporary files that were uploaded were not deleted. So there exisits in multiple folders/directories, temp files ( for example : DOT TXT, DOT EXE..... no file name, just a DOT and file extension).

I am trying to come up with a method to look thru the various folders and then delete just the files that DO NOT have a file name. Files like (DOT EXE, DOT TXT). The folders that contain such files may also cotain other files which have proper file names and extensions.

Any suggestions on how to proceed??

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top