V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
thinker3
V2EX  ›  问与答

batch file 中有中文,怎么办?

  •  
  •   thinker3 · Aug 27, 2014 · 2964 views
    This topic created in 4262 days ago, the information mentioned may be changed or developed.
    在命令行里
    netsh interface show interface | findstr 已连接
    可以运行


    把这句写在一个.bat文件中
    @echo off
    netsh interface show interface ^| findstr 已连接
    运行后,就这样了

    netsh interface show interface | findstr 宸茶繛鎺?
    此命令提供的语法不正确。请查看帮助以获取正确的语法信息。
    1 replies    2014-08-27 11:17:02 +08:00
    ghostasboy
        1
    ghostasboy  
       Aug 27, 2014 via iPhone
    写bat时候保存的内码问题?换个txt编码试试 找个支持中文的
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3695 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 130ms · UTC 05:00 · PVG 13:00 · LAX 22:00 · JFK 01:00
    ♥ Do have faith in what you're doing.