1 Star 0 Fork 1

liaoth3/dnf

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
git_update.vbs 821 Bytes
一键复制 编辑 原始数据 按行查看 历史
liaoth3 提交于 2016-04-24 19:30 . update
Set fso = CreateObject("Scripting.FileSystemObject")
Set shell = CreateObject("WScript.Shell")
shell.currentdirectory = "D:\DNF"
Const TemporaryFolder = 2
linkfile = fso.BuildPath("D:\", "update.lnk")
gitdir = "C:\Program Files (x86)\Git"
' Dynamically create a shortcut with the current directory as the working directory.
Set link = shell.CreateShortcut(linkfile)
link.TargetPath = fso.BuildPath(gitdir, "bin\sh.exe")
link.Arguments = "--login -i"
link.IconLocation = fso.BuildPath(gitdir, "etc\git.ico")
If WScript.Arguments.Length > 0 Then link.WorkingDirectory = WScript.Arguments(0)
'msgbox WScript.Arguments(0)
link.Save
'shell.Run "taskkill /f /im sh.exe", 0
'shell.run linkfile
'WScript.Sleep 3000
'shell.SendKeys "git ud "
'shell.SendKeys "{ENTER}"
'WScript.Sleep 120000
'shell.Run "taskkill /f /im sh.exe", 0
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
QML
1
https://gitee.com/liaoth3/dnf.git
[email protected]:liaoth3/dnf.git
liaoth3
dnf
dnf
master

搜索帮助