?
Solved

Deleting files on NTFS drive

Posted on 2002-04-11
2
Medium Priority
?
166 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: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

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.

Question has a verified solution.

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

Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…
Suggested Courses
Course of the Month13 days, 21 hours left to enroll

801 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