chcp.com and fc.exe does reset the standard input
#35
andry81
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
If execute
chcp.comorfc.exewhile the stdin is being read, then it will reset stdin handle into the beginning of the being read stream.Note
It is opposite to the
wmic.exeissue in #25 whenwmic.exereads the input bypassing the standard stream handle.Tests:
https://github.com/andry81/contools--debug/tree/HEAD/test_chcp_stdin_reset.bat
https://github.com/andry81/contools--debug/tree/HEAD/test_fc_stdin_reset.bat
https://github.com/andry81/contools--debug/tree/HEAD/1.in
https://github.com/andry81/contools--debug/tree/HEAD/dummy1.txt
Results:
Beta Was this translation helpful? Give feedback.
All reactions