WScript.echo "begin commit daily codes"
rem WScript.sleep(3000)
set WshShell = CreateObject("WScript.shell")
WshShell.run "C:\Users\Administrator\Desktop\git-bash.exe.lnk"
WScript.sleep(5000)
rem enter code folder
WshShell.AppActivate "MINGW64"
WshShell.SendKeys "cd" + " "+ "C:"
WshShell.SendKeys "{Enter}"
WScript.sleep(2000)
WshShell.AppActivate "MINGW64"
WshShell.SendKeys "cd" + " "+ "Users/Administrator/Desktop/"
WshShell.SendKeys "{Enter}"
WScript.sleep(5000)
rem enter git commands
WshShell.AppActivate "MINGW64"
WshShell.SendKeys "git" + " "+ "pull"
WshShell.SendKeys "{Enter}"
WScript.sleep(5000)
WshShell.AppActivate "MINGW64"
WshShell.SendKeys "git" + " "+ "status"
WshShell.SendKeys "{Enter}"
WScript.sleep(5000)
WshShell.AppActivate "MINGW64"
WshShell.SendKeys "git" + " "+ "add" + " " +"--all"
WshShell.SendKeys "{Enter}"
WScript.sleep(5000)
WshShell.AppActivate "MINGW64"
WshShell.SendKeys "cd" + " "+ "Users/Administrator/Desktop/"
WshShell.SendKeys "{Enter}"
WScript.sleep(5000)
rem exit git GUI
WshShell.AppActivate "MINGW64"
WshShell.SendKeys "will"+ " "+ "exit" + " "+"after" + " "+"5" + " "+"seconds"
WshShell.SendKeys "{Enter}"
WScript.sleep(5000)
WshShell.AppActivate "MINGW64"
WshShell.SendKeys "exit"
WshShell.SendKeys "{Enter}"
rem end this VBScriptset WshShell = nothingWScript.echo "End commit daily codes"
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。