Error while executing (.exe ) from windows command script (.cmd) file
Posted
by
mahesh
on Stack Overflow
See other posts from Stack Overflow
or by mahesh
Published on 2012-04-07T05:26:04Z
Indexed on
2012/04/07
5:29 UTC
Read the original article
Hit count: 142
I have the following syntax in the .cmd file, where PathList is console application with .exe as extension.
cd D:\Sample
D:
PathList 2> file.txt
This syntax works fine if the file is saved with .bat as extension, but if save it with .cmd extension it throws error saying 'PathList' is not recognized as an internal or external command, operable program or batch file. Please can i know what is the issue with saving it with .cmd extension
© Stack Overflow or respective owner