CMD DOS command not recognized despite valid clscommand used

First, piping with external command like more.com using DOS command not working only on my Windows 10; however, other Windows 10 laptop do not have this issue.

Example:

Microsoft Windows [Version 10.0.19043.1288]
C:\Windows\System32>type drivers\gmreadme.txt | more
'.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC' is not recognized as an internal or external command, operable program or batch file.

C:\Windows\System32>dir | more
'.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC' is not recognized as an internal or external command, operable program or batch file.

However, external command more.com can pipe with "more" for pagination.

Other DOS command like "for" could not execute external command.

Example 2:

C:\>for /f "tokens=3" %a in ('reg query "HKCU\Control Panel\International" /v iDate') do set "iDate=%a"
'reg query "HKCU\Control Panel\International" /v iDate' is not recognized as an internal or external command, operable program or batch file.

This causing batch file failed to execute when DOS command is prepared in DOS batch file:

Much appreciate if this issue can be resolved without the need of reinstall/reformat Windows 10.

I have tried options like Windows 10 update and SFC /SCANNOW, but could not help.

Command Processor registry setting:

Answer
Answer

Hi ,Chai Chin Yen

Welcome to Microsoft Community and thank you for sharing your concern with us today.

Since the  CMD DOS command  let me point you in the right direction. I would suggest you to post your query in  Home - Microsoft Tech Community  team and they will help you with the appropriate details.

Hope this helps, and have a nice day.

 

 

Best Regards,

 

Hinata

 

Microsoft Community Support Specialist

1 person found this reply helpful

·

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

 
 

Question Info


Last updated May 14, 2023 Views 382 Applies to: