May 22, 2002 #1 sfriday IS-IT--Management Feb 23, 2002 211 DE If I use the OpenTextFile method, how do I close it. I am opening a file reading from it, I then want to clean up and delete it, currently fails with permission denied as the file is open Steve
If I use the OpenTextFile method, how do I close it. I am opening a file reading from it, I then want to clean up and delete it, currently fails with permission denied as the file is open Steve
May 22, 2002 Thread starter #2 sfriday IS-IT--Management Feb 23, 2002 211 DE Fixed it, I was using a variable for the OpenTextFile IE Set objinfo = fspenTextFile(blahblahblah) to clear it I do Set objinfo = nothing I can then delete the file Upvote 0 Downvote
Fixed it, I was using a variable for the OpenTextFile IE Set objinfo = fspenTextFile(blahblahblah) to clear it I do Set objinfo = nothing I can then delete the file
May 23, 2002 #3 WidowMaker IS-IT--Management Jun 30, 2001 12 DK or you can use: objinfo.close() Upvote 0 Downvote
May 28, 2002 #4 Guest_imported New member Jan 1, 1970 0 Dim FSO Dim OpenFile Set FSO = CreateObject("Scripting.FileSystemObject" Set OpenFile = FSO.OpenTextFile("blablabla" *\/* OpenFile.Close */\* Upvote 0 Downvote
Dim FSO Dim OpenFile Set FSO = CreateObject("Scripting.FileSystemObject" Set OpenFile = FSO.OpenTextFile("blablabla" *\/* OpenFile.Close */\*