V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
thinker3
V2EX  ›  问与答

batch file 中有中文,怎么办?

  •  
  •   thinker3 · 2014-08-27 09:45:28 +08:00 · 2370 次点击
    这是一个创建于 3528 天前的主题,其中的信息可能已经有所发展或是发生改变。
    在命令行里
    netsh interface show interface | findstr 已连接
    可以运行


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

    netsh interface show interface | findstr 宸茶繛鎺?
    此命令提供的语法不正确。请查看帮助以获取正确的语法信息。
    1 条回复    2014-08-27 11:17:02 +08:00
    ghostasboy
        1
    ghostasboy  
       2014-08-27 11:17:02 +08:00 via iPhone
    写bat时候保存的内码问题?换个txt编码试试 找个支持中文的
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3240 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 00:36 · PVG 08:36 · LAX 17:36 · JFK 20:36
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.