ERROR

The name specified is not recognized as an internal or external command

Last Published: April 25, 2020

Solution or Workaround

Message:

Using the INFO SPOOL command to send INFO output to a printer returns the following message:

ENTER COMMAND > SPOOL
Using lpr to spool ARC.NSP
The name specified is not recognized as an internal or external command,
operable program or batch file.

Cause:

The Windows NT version of the %ARCHOME%\infosys\infospool.bat file has been set up as if for a UNIX machine.

Solution:

Using a text editor, edit the "infospool.bat" file in the %ARCHOME%\infosys directory. Replace the unix print command with an NT print command. You have several choices, as shown below, whether you are printing through a parallel port or across a network. It is recommended you try each from the DOS prompt to determine which works best for your setup.

Print command
-------------
parallel -> print /D:lpt1 %1
network -> print /D:\\server\printer %1

Copy command
------------
parallel -> copy %1 lpt1
network -> copy %1 \\server\printer

Lpr command
-----------
network -> lpr -S server -P printer %1

where:

- 'server' is the name of your printer server
- 'printer' is the name of your printer queue
NOTE: '%1' is the variable used by INFO that will point to the file being passed by the SPOOL command. This string should be entered into the file as shown.

Article ID:000001393

Software:
  • ArcMap 8 x
  • Legacy Products

Receive notifications and find solutions for new or common issues

Get summarized answers and video solutions from our new AI chatbot.

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options