同步现在的代码
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
|
||||
' typora-handler.vbs
|
||||
' 获取传入的参数,也就是 typora:// 后面的完整链接
|
||||
Dim url
|
||||
url = WScript.Arguments(0)
|
||||
|
||||
' 创建一个 Shell 对象
|
||||
Set WshShell = CreateObject("WScript.Shell")
|
||||
|
||||
' 构造要执行的命令
|
||||
' 注意:这里的路径需要根据你电脑上 node.exe 和 .js 文件的实际位置来写
|
||||
Dim command
|
||||
command = """C:\nvm4w\nodejs\node.exe"" ""D:\projects\my-website\tools\typora-handler.js"" """ & url & """"
|
||||
|
||||
' 执行命令
|
||||
' 参数 0 表示隐藏窗口,False 表示不等待程序结束就返回
|
||||
WshShell.Run command, 0, False
|
||||
|
||||
Set WshShell = Nothing
|
||||
Reference in New Issue
Block a user