Access Denied Starting Application

Last reviewed: January 30, 1998
Article ID: Q179147
The information in this article applies to:
  • Microsoft Windows NT Workstation version 4.0
  • Microsoft Windows NT Server version 4.0

SYMPTOMS

On your system partition, you have a folder named Program in the root directory (such as C:\Program).

When you attempt to start an application from the desktop, the Start menu, or possibly from a file association, the following error message is displayed:

   Access to the specified device, path or file is denied

This problem only affects applications whose executable files reside in subdirectories of the Program Files directory.

CAUSE

This error is caused by applications that do not write quoted path strings containing long file names into the registry. The execution of a process is handled by the Win32 CreateProcess() API. CreateProcess() is unable to distinguish between spaces in long file names, and spaces delimiting arguments to the function. If a quoted string is passed to the API, CreateProcess() is able to make this distinction and launches the application as expected.

RESOLUTION

To resolve this problem, obtain the following fix or wait for the next Windows NT service pack.

This fix should have the following time stamp:

   09/15/97  21:39               372,496 Kernel32.dll (Intel)
   09/15/97  21:38               589,584 Kernel32.dll (Alpha)

STATUS

Microsoft has confirmed this to be a problem in Windows NT version 4.0. A supported fix is now available, but has not been fully regression-tested and should be applied only to systems experiencing this specific problem. Unless you are severely impacted by this specific problem, Microsoft recommends that you wait for the next Service Pack that contains this fix. Contact Microsoft Technical Support for more information.


Additional query words: ole shell open command run context menu office
Keywords : kbbug4.00 kbfix4.00
Version : WinNT:4.0
Issue type : kbbug
Solution Type : kbfix


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: January 30, 1998
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.