cURL / Mailing Lists / curl-users / Single Mail

curl-users

UNSUBSCRIBE

From: sam tube <samutube_at_yahoo.com.sg>
Date: Fri, 3 Jun 2011 14:21:28 +0800 (SGT)

Please take me off the list please ________________________________ From: Doug McNutt <douglist@macnauchtan.com> To: curl-users@cool.haxx.se Sent: Monday, 30 May 2011 04:34:56 Subject: Re: Keeping a curl comand result in a file, do not work from script At 21:45 +0200 5/29/11, Raul wrote: I just find a workarround calling to a Bat file in which work curl fine. Why did not work it in VBS? 2011/5/29 Raul <<mailto:raul.frutos@gmail.com>raul.frutos@gmail.com> Hi, I am working in a VBS script in which one of the task is to connect to a ftp server, get the list of the files and keep this info in an local ouput file. It is very strange because it works from command line but it does not from my script. This is the code: Dim oShell Dim returnResult Set oShell = WScript.CreateObject ("WScript.Shell") returnResult = oShell.run("curl -l <ftp://user:password@IP:21/test%20%3E%3Ed:%5Ctmp.txt,%201,True)>ftp://user:password@IP:21/test >>d:\tmp.txt, 1,True) Set oShell = Nothing msgbox returnResult ****** You might be better off using curl's -o Filepath option instead of a redirection. I'm pretty sure curl will create a file for you. Well, I know it will on a UNIX box, not so sure about a peecee. -- --> A fair tax is one that you pay but I don't <-- ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-users FAQ:        http://curl.haxx.se/docs/faq.html Etiquette:  http://curl.haxx.se/mail/etiquette.html

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-06-03