chcp 65001 and a .bat file

前端 未结 6 590
小鲜肉
小鲜肉 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 11:54

    "chcp 65001" does not work before Windows 7. It will cause the batch to terminate immediately. There is no work-around.

    I have verified this by directly testing 2003, XP, Vista, 2008, 7, 8, and 10.

提交回复
热议问题