?
Solved

Deleting files on NTFS drive

Posted on 2002-04-11
2
Medium Priority
?
169 Views
Last Modified: 2010-05-02
I have a VB 6 routine that deletes all files in a directory, copies blank FoxPro dbf files to the empty directory, fills the files with data, uses the files with a report writer.  On a Windows 9x system things work fine every time.  On a Windows NT/2000 system I can only fill the files with data once.  The second time I attempt to fill the empty data files, I get an error message stating that the field types are incompatible.  Any ideas what is going on?  Is there a special way I need to delete files in an NTFS Operating System?

Private Sub PrintMyReport()

Kill app.path & "\Reports\*.*"
Filecopy app.path & "\myfile.dbf", app.path & "\Reports\Myfile.dbf"
< fill empty dbf files with data >
< run the report writer >

End Sub
0
Comment
Question by:tanderson78
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 4

Accepted Solution

by:
WolfgangKoenig earned 60 total points
ID: 6936607
No,there is no special way but the security of an NTFS File system is enhanced. This can leading to that you must have the right privileges to delete files and that the file attribute 'write protected' is not set...
But i think your problem is another ...

WoK
0
 

Author Comment

by:tanderson78
ID: 6938175
You are correct that the problem was something else.  I had altered a database file and my fields were not matching up.  Once the fields in each table matched, the problem went away.  I assumed it was an NT issue since it worked fine on my 98 system.  The 98 system had the correct files.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Suggested Courses

649 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