Glow
V2EX  ›  问与答

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

  •  
  •   Glow · Dec 26, 2012 · 4743 views
    This topic created in 4884 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
        1
    gucheen  
       Dec 26, 2012
    将 sublime 添加到环境变量试试看
    Glow
        2
    Glow  
    OP
       Dec 26, 2012
    @gucheen
    我用的是 "C:\Program Files\Sublime Text 2\sublime_text.exe" index.php 来解决的,没用环境变量
    siw
        3
    siw  
       Dec 26, 2012
    @Glow
    所以你想问什么?
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3901 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 04:40 · PVG 12:40 · LAX 21:40 · JFK 00:40
    ♥ Do have faith in what you're doing.