谁能帮我编一个批处理的程序? 关于操作系统账户的。

来源:百度知道 编辑:UC知道 时间:2024/06/21 19:20:51
我通过CMD将管理员账户提高到了SYSTEM账户,但是这样做太麻烦了,麻烦高人帮我编一个批处理程序,在CMD命令提示符下的命令是这样的:
taskkill /f /im explorer.exe

at time /interactive %systemroot%\explorer.exe (这里的time是当 前系统时间靠后5秒钟)

(这时的命令都是在管理员账户下输入的)
你们好像没有听明白吧,那个time可不是照抄的,需要在系统时间靠后5秒钟,如果不是time,我还不发这个提问呢!
5楼的思路不错,可是不能用呀!麻烦你再修改一下!

好像at命令不能指定秒吧?
假定可以:
taskkill /f /im explorer.exe
set /a sec=%time:~6,2%+5
set fulltime=%time:~0,6%%sec%
at %fulltime% /interactive %systemroot%\explorer.exe
如果不可以,那只能延迟一分钟……
taskkill /f /im explorer.exe
set /a min=%time:~3,2%+1
set fulltime=%time:~0,3%%min%
at %fulltime% /interactive %systemroot%\explorer.exe

用记事本把这几个命令保存,然后把记事本格式txt改成bat,然后你再运行就成了批处理了!

新建一个文档然后把taskkill /f /im explorer.exe

at time /interactive %systemroot%\explorer.exe 复制进去保存。然后把文件名改成XXX.BAT
就完事了

建文档

taskkill /f /im explorer.exe

at time /interactive %systemroot%\explorer.exe

然后保存成BAT格式