Skip to content

Commit

Permalink
在文件所在目录打开或运行文件
Browse files Browse the repository at this point in the history
  • Loading branch information
goreliu committed Sep 9, 2017
1 parent 961ee4c commit 161eec2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions RunZ.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -1192,13 +1192,15 @@ RunCommand(originCmd)
}
}

SplitPath, cmd, , fileDir, ,

if (Arg == "")
{
Run, %cmd%
Run, %cmd%, %fileDir%
}
else
{
Run, %cmd% "%Arg%"
Run, %cmd% "%Arg%", %fileDir%
}
}
else if (splitedOriginCmd[1] == "function")
Expand Down

0 comments on commit 161eec2

Please sign in to comment.