打开网站的网址通过使用批处理文件和参数链接 [英] Open website url links with parameter by using a batch file

查看:491
本文介绍了打开网站的网址通过使用批处理文件和参数链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图打开在我的浏览器参数一些网站的URL链接。我用这个code做了一个批处理文件:

 关闭@echo
启动图像www.images.com/1000/image.jpg
启动图像www.images.com/1001/image.jpg
启动图像www.images.com/1002/image.jpg
...
...
启动图像www.images.com/5000/image.jpg

我要的是创造一个for循环,将做到这一点:

 有关(I = 1000; I< 5000;我++)
{
     启动图像www.images.com/i/image.jpg
}

,其中i是网站的链接的一个参数。我在批处理文件中创建新的,我无法弄清楚如何使它发挥作用。我想这一个,但它没有工作:

 为我在{} 1000..5000

启动图像www.images.com/$i/image.jpg

这个问题的第一步。然后,我要救这个链接显示的图像,只有当链接是有效的(不是死像403,404错误)


解决方案

 有关/ L %% i的(1000,1,5000)做(
     启动图像www.images.com/%%i/image.jpg

I am trying to open some website url links with a parameter in my browser. I made a batch file using this code :

@echo off


start "images" "www.images.com/1000/image.jpg"
start "images" "www.images.com/1001/image.jpg"
start "images" "www.images.com/1002/image.jpg"
...
...
start "images" "www.images.com/5000/image.jpg"

All I want is to create a For loop that will do that :

For (i=1000; i<5000 ; i++)
{
     start "images" "www.images.com/i/image.jpg" 
}

where "i" is a parameter of the website link. I am new in the batch file creation and I cannot figure out how to make it work. I tried this one but it did not work:

for i in {1000..5000} 
do
start "images" "www.images.com/$i/image.jpg"

This question is a first step. Then i want to save the images shown on this links, only if the links are valid (not dead like in 403, 404 errors)

解决方案

For /L %%i in (1000,1,5000) do (
     start "images" "www.images.com/%%i/image.jpg" 
)

这篇关于打开网站的网址通过使用批处理文件和参数链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆