Microsoft KB Archive/157745

From BetaArchive Wiki
Knowledge Base


Command Extensions Cause Access Violation in Cmd.exe

Article ID: 157745

Article Last Modified on 11/1/2006



APPLIES TO

  • Microsoft Windows NT Workstation 4.0 Developer Edition
  • Microsoft Windows NT Server 4.0 Standard Edition



This article was previously published under Q157745

SYMPTOMS

When you run CMD or BAT files that use the Windows NT command extension syntax, access violations in Cmd.exe may occur.

For example, create the following Test.cmd file:

   FOR /R C:\ %%f in (iexplore.exe, patchdll.dll, srv.sys) do if exist %%f
   echo %%f
                


An error message will be displayed:

Application Error: The instruction at "0x77f646ce" referenced memory at "0x0073006f". The memory could not be read.

NOTE: The address values may be different on your system.

Results may vary, depending on what group of files is contained in the set. A Dr. Watson error may be one such occurrence. Usually, there is no error if the set contains only a single file.

STATUS

Microsoft has confirmed this to be a problem in Windows NT version 4.0. This problem was corrected in the latest Microsoft Windows NT 4.0 U.S. Service Pack. For information on obtaining the service pack, query on the following word in the Microsoft Knowledge Base (without the spaces):

S E R V P A C K



Additional query words: 4.00 prodnt cmd command extensions

Keywords: kbbug kbenv KB157745