AT Command Handles Quotation Marks Differently

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

IMPORTANT: This article contains information about editing the registry. Before you edit the registry, make sure you understand how to restore it if a problem occurs. For information on how to do this, view the "Restoring the Registry" online Help topic in Regedit.exe or the "Restoring a Registry Key" online Help topic in Regedt32.exe.

SYMPTOMS

You used batch files in Windows NT 3.51 to schedule jobs with the AT command. With Windows NT 4.0, jobs surrounded with quotation marks are not run.

CAUSE

The parsing algorithm of the AT command was changed in Windows NT 4.0 to better handle Long File Names (LFN). Here are examples of the syntax for the AT command for each operating system.

   AT 10:15 "notepad c:\config.sys" (Windows NT 3.51)
   AT 10:15 notepad "c:\config.sys" (Windows NT 4.0)

RESOLUTION

The AT command in Windows NT 4.0 can be forced to use the same parsing algorithm as Windows NT 3.51 by adding a parameter to the registry.

WARNING: Using Registry Editor incorrectly can cause serious problems that may require you to reinstall Windows. Microsoft cannot guarantee that problems resulting from the incorrect use of Registry Editor can be solved. Use Registry Editor at your own risk.

For information about how to edit the registry, view the "Changing Keys And Values" online Help topic in Registry Editor (Regedit.exe) or the "Add and Delete Information in the Registry" and "Edit Registry Data" online Help topics in Regedt32.exe. Note that you should back up the registry before you edit it.

  1. Start Registry Editor (Regedt32.exe) and select the following key:

          HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Schedule
    

  2. On the Edit menu, click Add Key to create the following entry:

          Key Name: Parameters
          Class: <blank>
    

  3. Open the Parameters key that you created in step 2.

  4. On the Edit menu, click Add Value to create the following entry:

          Value Name:   UseOldParsing
          Data Type :   REG_DWORD
          String    :   1
    
    
NOTE: This parameter is deleted by the Scheduler service on startup. To avoid the parameter being deleted, apply the fix mentioned below.

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: atsvc "" schedular
Keywords : kbbug4.00 kbfix4.00 NTSrvWkst
Version : WinNT:4.0
Platform : winnt
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 8, 1998
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.