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: