Win 7任务计划程序交互模式

时间:2021-09-16 02:22:43

I would like to run a scheduled bat file every day on Win7 machines. The file needs to launch IE interactively and crawl a list of web pages to generate web traffic. I could achieve this with wget and it will generate the traffic, but I need IE to run interactively so it launches and generates the traffic through an IE plugin that tracks urls visited. The interactive

我想每天在Win7机器上运行一个预定的bat文件。该文件需要以交互方式启动IE并抓取网页列表以生成网络流量。我可以通过wget实现这一点并且它将生成流量,但我需要IE以交互方式运行,因此它启动并通过跟踪访问的URL的IE插件生成流量。互动

Need to run interactively when user is logged and or when not logged on Every Day at 5am repeat for 12 hours Problem is that IE wont launch.

需要在用户登录时或在未登录时以交互方式运行每天早上5点重复12小时问题是IE不会启动。

bat file looks like this

bat文件看起来像这样

start /d iexplore.exe http://www.google.com

start / d iexplore.exe http://www.google.com

ping 1.1.1.1 -w 5000 >NUL

ping 1.1.1.1 -w 5000> NUL

start /d iexplore.exe http://www.yahoo.com

start / d iexplore.exe http://www.yahoo.com

taskkill /im iexplore.exe

taskkill / im iexplore.exe

1 个解决方案

#1


0  

i think you need the path of ie like this or it needs quotes ""

我认为你需要这样的路径,或者它需要引号“”

"C:\Program Files (x86)\Internet Explorer\iexplore.exe" http://www.google.com

“C:\ Program Files(x86)\ Internet Explorer \ iexplore.exe”http://www.google.com

#1


0  

i think you need the path of ie like this or it needs quotes ""

我认为你需要这样的路径,或者它需要引号“”

"C:\Program Files (x86)\Internet Explorer\iexplore.exe" http://www.google.com

“C:\ Program Files(x86)\ Internet Explorer \ iexplore.exe”http://www.google.com