chcp 65001 and a .bat file

前端 未结 6 592
小鲜肉
小鲜肉 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:56

    it looks like a problem I recently met

    cd folder
    dir /B /O:N > list_of_files.tmp
    cmd /U /C type list_of_files.tmp>list_of_files.txt
    del list_of_files.tmp
    

提交回复
热议问题