How to specify the wget file location (output location)

Posted by Matt on Super User See other posts from Super User or by Matt
Published on 2012-11-26T16:30:51Z Indexed on 2012/11/26 17:08 UTC
Read the original article Hit count: 298

Filed under:
|

i have this batch file that reads an input file to grab images from a URL. How can I specify a different output location for the wget files.

@echo off
setlocal enabledelayedexpansion
for /f %%l in (Input.txt) do (
    set line=%%l
    wget -O !line:~0,10!.jpg !line:~10!
)

I want the output to be in a different location.

edit If wget is run from C:\wget\bin. How can the output be saved to C:\folder\folder\x

© Super User or respective owner

Related posts about Windows

Related posts about wget