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