Tuesday, August 26, 2014

windows - How to specify the wget file location (output location)

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

No comments:

Post a Comment

linux - How to SSH to ec2 instance in VPC private subnet via NAT server

I have created a VPC in aws with a public subnet and a private subnet. The private subnet does not have direct access to external network. S...