Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

share|improve this question

1 Answer 1

You can specify a download directory with the paramter -P.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.