Glow
V2EX  ›  问与答

如何使用命令行"sublime index.php"来用sublime打开index.php文件?

  •  
  •   Glow · Dec 26, 2012 · 5165 views
    This topic created in 5075 days ago, the information mentioned may be changed or developed.
    网上流行的一个自动修改hosts的bat文件中有一行这个:

    notepad "%SystemRoot%\system32\drivers\etc\hosts"

    自动用本地记事本打开了hosts文件,请问该怎么设置才能用sublime打开它?
    3 replies  •  1970-01-01 08:00:00 +08:00
    gucheen
    gucheen
    Dec 26, 2012
    1
    将 sublime 添加到环境变量试试看
    Glow
    Glow
    OP
    Dec 26, 2012
    2
    @gucheen
    我用的是 "C:\Program Files\Sublime Text 2\sublime_text.exe" index.php 来解决的,没用环境变量
    siw
    siw
    Dec 26, 2012
    3
    @Glow
    所以你想问什么?
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   895 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 21:25 · PVG 05:25 · LAX 13:25 · JFK 16:25
    ♥ Do have faith in what you're doing.