cmd批量打开网页和关闭网页的批处理代码
如果浏览器的安装路径中有空格,可以用“”代替,如下:
C:\ProgramFiles\MozillaFirefox\firefox.exe
可以替换为C:\Program""Files\Mozilla""Firefox\firefox.exe
1、用IE浏览器打开网页的批处理代码:startc:\progra~1\Intern~1\iexplore.exe网址
例子:
@echooff title打开网页 startc:\progra~1\Intern~1\iexplore.exe"http://www.baidu.com"
2、用谷歌浏览器打开网页的批处理代码:安装路径网址
例子:
@echooff title打开网页 startC:\Users\Administrator\AppData\Local\Google\Chrome\Application\chrome.exehttp://www.google.com.hk
3、用火狐浏览器打开网页的批处理代码:安装路径网址
例子:
@echooff title打开网页 startC:\Program""Files\Mozilla""Firefox\firefox.exe"http://www.163.com"
4、批量打开网页的代码(转载):
@echooff modeconlines=16 title批量打开网页 color2f cls echo. echo现在是%date%%time%echo echo━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ startwww.baidu.com startwww.nhooo.com echo开启完成,正在返回!
5、关闭浏览器的批处理代码:
@echooff title结束进程 taskkill/f/t/imiexplore.exe taskkill/f/t/imchrome.exe taskkill/f/t/imfirefox.exe
以上就是cmd批量打开网页和关闭网页的批处理代码,大家可以多测试一下