I want to create a batch file (e.g. RunThis.bat ) that creates directories of names that can be Russian or other.
Example:
When DOS Windows opens with a hint:
D:\>md "Russia - "
This work on the command line and the name is displayed correctly.
But if I try to use Notepad and save in ANSII , I cannot. Therefore, if I use Notepad again and save it in UTF-8, it will work, but with garbage characters.
RunThis.bat (Notepad save UTF-8), specify garbage characters.
chcp 65001 set fn14="Russia - " md %fn14%
Notebook problem uses UTF-8 with specification.
To save bytes using the UTF-8 specification without , we must use an editor, such as Notepad ++.
RunThis.bat (Notepad ++ save UTF-8 - no specification )
chcp 65001 set fn14="Russia - " md %fn14%
This time its work is excellent when we run " RunThis.bat " directly from explorer.exe
Resistor
source share