Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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.