[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 236
  • Last Modified:

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
   
0
TOPIO
Asked:
TOPIO
1 Solution
 
shanesuebsahakarnCommented:
Kill.

Kill strFileName

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

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now