/ f /我不能正常工作

时间:2014-10-05 17:29:05

标签: batch-file vbscript

在我之前的帖子中,我制作了一个.bat文件来强制使用googleearth.exe

他是那个

的代码
@echo off
taskkill /im googleearth.exe
timeout /t 1 no break
START "" "C:\Users\PERGM\Desktop\GE\Acti.kmz"

然后我使用.VPS脚本来隐藏cmd屏幕。

这样它很顺利。这是

的代码
'HideBat.vbs
CreateObject("Wascript.Shel").Run"Acti.bat" , 0 , True

这一切都在Windows 8上。

Eveyrything一直很完美,直到我关闭电脑几个月。 (我工作中的其他优先事项占用了我的额外时间)所以我现在尝试运行它,而.bat文件不会执行强制终止部分脚本。除非我以管理员身份运行,我以前没有必要这样做。我无法将.bat设置为始终以管理员身份运行,但如果我可以创建快捷方式,那么我可以。但是我无法让.vbs在之后正常运行。

有什么想法吗?非常感谢。

PS这是我发布的原始链接 Closing and Opening a .exe with a batch file. Upon closing the program asks to save or not

0 个答案:

没有答案
相关问题