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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to close all open files from the path specified?

Status
Not open for further replies.

19790203

Programmer
Oct 7, 2005
13
PL
I need to have a code which closes all of the files open in the path specified, for example: if the path is: "C:\TEMP\" and contains 3 files, of which 2 are open, the code must check which files are open of these 3 and close them.

Waiting for a hint!
 
Loop through and close all of them. Trap the error if they are closed already.

________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first.
'If we're supposed to work in Hex, why have we only got A fingers?'
Drive a Steam Roller
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top