delete a file Programatically in Access 2000

I have a routine that proceses some text Files
I get the file using

Open strInputFileName For Input As #1        ' Open Input file.
....
i Do the processing here

....
At the end I do
Close #1    ' Close file.

I want to delete the file that I was using  Full file path and name stored in a variable called.
strInputFileName

I want to erase the file without asking for user confirmation
   
LVL 10
TOPIOAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
shanesuebsahakarnConnect With a Mentor Commented:
Kill.

Kill strFileName

to delete the file whose name/path is in strFileName.
0
All Courses

From novice to tech pro — start learning today.