Glow
V2EX  ›  问与答

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

  •  
  •   Glow · Dec 26, 2012 · 5172 views
    This topic created in 5079 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   ·   1663 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 15:58 · PVG 23:58 · LAX 07:58 · JFK 10:58
    ♥ Do have faith in what you're doing.