'以下内容,等号右边的值可根据需要进行修改,但请注意其值一定要写在半角的双引号中
Game_EXE = "CNC3.exe" '←说明:引号中为游戏的可执行文件名
YASU_EXE = "YASU.exe" '←说明:引号中为YASU的可执行文件名
Game_Path = "" '←说明:引号中为游戏所在文件夹,如用当前文件夹请留空
YASU_Path = "" '←说明:引号中为YASU所在文件夹,如用当前文件夹请留空
'以下内容不需要修改
Current_Directory = Left(WScript.ScriptFullName, _
InStr(1, WScript.ScriptFullName, WScript.ScriptName, 1) - 1)
If Game_Path = "" Then Game_Path = Current_Directory
If YASU_Path = "" Then YASU_Path = Current_Directory
Set WshShell = WScript.CreateObject("WScript.Shell")
abc = WshShell.CurrentDirectory
WshShell.CurrentDirectory = YASU_Path
WshShell.Run YASU_EXE & " -c -s", , False
Wscript.Sleep 2000
WshShell.CurrentDirectory = Game_Path
WshShell.Run Game_EXE, , True
WshShell.CurrentDirectory = YASU_Path
WshShell.Run YASU_EXE & " -x -s", , False
WshShell.CurrentDirectory = abc