cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: How to download files to a specific directory?

From: Tim Liljendahl <hitech_at_hitech.dk>
Date: Thu, 8 Jul 2004 10:13:35 +0200

On Thu, Jul 08, 2004 at 06:22:19AM +0000, Glenn wrote:
> When I start the program with an external tool (scheduling part of a
> commercial software) the bat file still executes and receive all files BUT
> they are downloaded to the directory where the scheduling tool is executed!
> This is probably obvious but I don't know how to solve this and direct my
> files to another directory (I'm not very happy to automatically move files
> from the prod-env.)

What about putting a 'cd directory' as the first thing in the .bat file?
>
> The process for getting the files I want goes like this:
> 1 a.bat: get id:s from a site and put them in temp.bat
> 2 temp.bat: call b.bat with id to download
>
> The command row looks something like this:
> D:\curl --cert D:\vib.crt --cacert D:\XXXXXX.pem "https://myURL.se/%product%/%
> 1" -O

-- 
Tim Liljendahl
haandlavet.dk
Salg af hobbyartikler, fjernstyrede biler mm.
Received on 2004-07-08