chcp 65001 and a .bat file

前端 未结 6 600
小鲜肉
小鲜肉 2021-02-08 10:59

I have a problem with chcp 65001 command in Windows shell.

I need to generate a list of files in a folder. So I ran cmd.exe, typed

cd folder         


        
6条回答
  •  抹茶落季
    2021-02-08 12:03

    On Windows 2003 worked this:

    chcp 65001 && cmd /C dir C:\WINDOWS\* && chcp 866
    

    C:\windows\* - only sample

    && chcp 866 - default code page and this allow to continue batch

提交回复
热议问题