Solved

Deleting files on NTFS drive

Posted on 2002-04-11
2
165 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 20 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

[Webinar] Learn How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

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

I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
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…

728 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