Article ID: 000057543 Content Type: Error Messages Last Reviewed: 02/04/2023

Error: “The Syntax of the Command Is Incorrect” When Running “setupvars.bat” in OpenVINO™ with Windows® 10

Environment

OpenVINO 2020.4

Windows® 10, 64-bit*

BUILT IN - ARTICLE INTRO SECOND COMPONENT
Summary

Options to resolve errors encountered during OpenVINO Toolkit environment initialization.

Description
  1. Executed setupvars.bat script to initialize OpenVINO environment in Windows® 10
  2. Received error: The input line is too long. The syntax of the command is incorrect.
Resolution

The errors may appear when setupvars.bat script is repeatedly executed in the same Command Window or the command is too long for the Windows* command line environment to handle.

  1. Close current Command Window and open a new Command Window.
  2. Execute setupvars.bat script.

Then, OpenVINO™ environment will be initialized.

If symptoms persist, shorten the setupvars.bat file PATH by installing LongPathTool.

Download the LongPathTool and How to use the long path tool for your reference.

Related Products

This article applies to 1 products