半肾
精华
|
战斗力 鹅
|
回帖 0
注册时间 2006-11-28
|
- Set WshShell = WScript.CreateObject("WScript.Shell")
- WshShell.Run "taskkill /im someexe.exe", 3, true
- Set FSO = CreateObject("Scripting.FileSystemObject")
- If (FSO.FolderExists("C:\Work\.metadata")) Then
- FSO.DeleteFolder "C:\Work", True
- End If
- WshShell.Run "C:\Windows\System32\Robocopy.exe \\someremote\c$\Work\AutoFlow\src C:\Work\AutoFlow\src /mir", 3, true
- strDesktop = WshShell.SpecialFolders("Desktop")
- WshShell.Run strDesktop & "\someappunderdesktop\someapp --para1 51022 --para2 51022", 7, False
- wscript.sleep 1500
- WshShell.Run """C:\Program Files\xxxapp\xxxapp.exe"""
- wscript.sleep 1500
- WshShell.AppActivate "xxxapp Title"
- wscript.sleep 500
- WshShell.SendKeys "{ENTER}"
- wscript.sleep 3000
- WshShell.SendKeys "q"
- wscript.sleep 500
- WshShell.SendKeys "{ENTER}"
- wscript.sleep 2500
- WshShell.CurrentDirectory = "C:\Work\AutoFlow"
- WshShell.Run """C:\Program Files\Java\jre7\bin\java.exe"" -cp ""bin;lib\*;C:\Program Files\Java\jdk1.7.0_80\lib\tools.jar"" xxpack.xxserver.Main", 1, False
复制代码
我寻思着,写这种也不算难啊 |
|