Harith V
Harith V

Reputation: 11

While running a batch file from Windows 10 cmd I'm getting an error that a term is not recognised as cmdlet function

This is the exact error on the cmd window.

this is the command I typed to be executed in the cmd

F:\Fast R-CNN\Cognitive tool kit\cntk\Scripts\install\windows>install.bat

CNTK Binary Install Script

F:\Fast : The term 'F:\Fast' is not recognized as the name of a cmdlet,
function, script file, or operable program. Check the spelling of the name, or
if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ F:\Fast R-CNN\Cognitive tool kit\cntk\Scripts\install\windows\ps\inst ...
+ ~~~~~~~
    + CategoryInfo          : ObjectNotFound: (F:\Fast:String) [], CommandNotF
   oundException
    + FullyQualifiedErrorId : CommandNotFoundException

Error during install operation

I've tried running as admin, direct clicking, changing the path etc. Kindly tell me a way to run this file. It's a batch file for a series of installations for the Microsoft cognitive tool kit.

Upvotes: 1

Views: 1313

Answers (2)

Panda
Panda

Reputation: 11

use "start" before the filename. Example:

F:\Fast R-CNN\Cognitive tool kit\cntk\Scripts\install\windows>start install.bat

Upvotes: 0

Itchydon
Itchydon

Reputation: 2596

Looks like you need to enclose the path in quotes "F:\Fast R-CNN\Cognitive tool kit\cntk\Scripts\install\windows\install.bat"

Upvotes: 2

Related Questions