Home > OS >  Win10 family BAT can't run a command under the Chinese situation and solution
Win10 family BAT can't run a command under the Chinese situation and solution

Time:11-26

Problem description: in Chinese WIN10 family system, running through the text document editor BAT file, through into CMD to check the running process, "cannot find the specified target" prompt,

Solution: check the editor when preparing BAT file using a text document, whether the font format decoding chose utf-8, if so, will BAT file save as to use ANSI format, and then run,

Analysis: as the BAT command contains Chinese characters, because of problems at runtime decoding format can't corresponding performance targets, leading to the system prompt unable to find the target, can't run,
In order to avoid the same problem, when edit the BAT file, should use a compatible with better decoding methods such as ANSI, or avoid the use of Chinese characters,
  • Related