Solved

Delete a text file when done with it

Posted on 2003-11-26
7
230 Views
Last Modified: 2010-04-17
I want to delete a text file when I have updated my access table with it, is ther a way in access
0
Comment
Question by:CMARKSON
  • 2
7 Comments
 
LVL 43

Accepted Solution

by:
TimCottee earned 500 total points
ID: 9824243
Hi CMARKSON,

You should be able to use:

Kill "c:\myfolder\mytextfile.txt"

Tim Cottee MCSD, MCDBA, CPIM
Brainbench MVP for Visual Basic
http://www.brainbench.com
0
 
LVL 4

Expert Comment

by:void_main
ID: 9825013
Access has a Visual Basic running in the background (Macros). You can easily delete files with the correct commands. The >>kill "filename.txt"<< is the best but you also can write >>shell "del filename.txt"<<

this should do the job
0
 
LVL 4

Expert Comment

by:void_main
ID: 10319740
TimCottee should earn all 500 points
0
 
LVL 1

Expert Comment

by:JayWhite
ID: 10323239
TimCottee should earn all 500 points
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now