"Error 5 Access Denied" Error Message When a Program Tries to Alter Last Access and Creation Time

Symptoms

MS-DOS-based and 16-bit Windows-based programs have the ability to update the last access and creation time for files and folders by using DOS Interrupt 21 function 7143 sub-functions 5 and 7. Occasionally, while this procedure is being attempted, an "error 5 (access denied)" error message is reported back to the program.

Cause

This problem can occur if the operating system uses an incorrect test to determine whether the program is allowed to update the last access or creation time.

Resolution

A supported hotfix is now available from Microsoft, but it is only intended to correct the problem that this article describes. Apply it only to systems that are experiencing this specific problem.

To resolve this problem, contact Microsoft Product Support Services to obtain the hotfix. For a complete list of Microsoft Product Support Services telephone numbers and information about support costs, visit the following Microsoft Web site:Note In special cases, charges that are ordinarily incurred for support calls may be canceled if a Microsoft Support Professional determines that a specific update will resolve your problem. The usual support costs will apply to additional support questions and issues that do not qualify for the specific update in question.

The English version of this fix should have the following file attributes or later:

Date Time Version Size File name Operating system
---------------------------------------------------------------------
10/20/2000 2:48pm 4.10.1999 77,993 Vfat.vxd Windows 98
10/19/2000 3:52pm 4.10.2223 77,993 Vfat.vxd Windows 98 Second
Edition
10/19/2000 3:27pm 4.90.3001 81,541 Vfat.vxd Windows Millennium
Edition (Me)

Workaround

To work around this problem and update the last access time and creation time for files, use the file handle-based function instead; Interrupt 21 function 5705 for last access date and time, and function 5707 for creation date and time. Note that it is not possible to update folder dates and times by using these functions.

Status

Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.

More Information

For additional information about Windows Me hotfixes, click the article number below to view the article in the Microsoft Knowledge Base:

295413 General Information About Windows Millennium Edition Hotfixes
For additional information about Windows 98 and Windows 98 Second Edition hotfixes, click the article number below to view the article in the Microsoft Knowledge Base:

206071 General Information About Windows 98 and Windows 98 Second Edition Hotfixes
Properties

Article ID: 277628 - Last Review: Jun 19, 2014 - Revision: 1

Feedback