分类: Windows平台
2015-03-18 10:38:18
@echo off
set /a numsec=%random%%%10
echo %numsec%
date /T >>c:\login.log
time /T >>c:\login.log
echo %numsec% >>c:\login.log
ping 127.0.0.1 -n %numsec%
cd C:\Program Files\Internet Explorer\
start "" "C:\Program Files\Internet Explorer\IEXPLORE.EXE"
start "" IEXPLORE.EXE
echo "end...... " >>c:\login.log
exit
注意:
要想前台打开IE必须在计划任务里选择“只在用户登录时运行” ,针对win7系统,否则窗口看不到打开的IE,但后台已经启动,可以看startmgr里的IE进程!