Using curl is fine, as I can put the usrname/passwd in the command line and not embedded in the batch file.
But I'm guessing there isn't anyway to load the input stack like you can with unix. I'm guessing it's been so long since i've used DOS and batch files, I will need to brush up on automating tasks with batch files. Thanks for the code reference, that was helpful. George George Gallen Senior Programmer/Analyst Accounting/Data Division [email protected] ph:856.848.9005 Ext 220 The Wyanoke Group http://www.wyanokegroup.com ________________________________________ From: [email protected] [[email protected]] On Behalf Of Jeff Schasny [[email protected]] Sent: Thursday, September 02, 2010 1:47 PM To: U2 Users List Subject: Re: [U2] running ftp from UV (Windows) I'll second Tony on this. I have been using cURL for years whenever I need to send/receive data. The HTTP/HTTPS protocol stuff is especially good because you can manipulate the HTTP headers. I have a couple FTP routines (for a Windows based system but easily adapted for Unix) using cURL here: http://www.schasny.com/BP/FTP.SEND http:/www.schasny.com/BP/FTP.GET Also, if you are REALLY against writing out a command file,you could put a bunch of commands together on one line using command separators (';' in Unix and '&' in Windows) Tony Gravagno wrote: > Having written FTP interfaces with MV before (in production use > at end-user sites) my recommendation is that you shift to cURL. > > - It's a high quality utility, > - well supported, > - does much more than FTP, > - adapts to Secure FTP without you having yet again go learn a > new utility, > - cross-platform, > - easy to install > - well documented, > - and free. > > Because it's cross-platform the only changes to your app code > that are required would be making sure that you have your > directories identified properly with proper slashes, and other > OS-specific details. But cURL itself, unlike FTP, works exactly > the same on all platforms. > > And no, I don't sell it or get a commission for referrals. > *sigh* ;) > > http://curl.haxx.se/ > > HTH > T > > >> From: George Gallen >> Currently I use something like: (Using Universe under Unix) >> CMD="ftp -n <<EOF" >> > [snip] > >> EXECUTE "sh -c '":CMD:"'" CAPTURING JUNK >> >> Is there a way to do this in Windows as well? >> > > _______________________________________________ > U2-Users mailing list > [email protected] > http://listserver.u2ug.org/mailman/listinfo/u2-users > > -- ------------------------------------------------------------------------ Jeff Schasny - Denver, Co, USA jschasny at gmail dot com ------------------------------------------------------------------------ _______________________________________________ U2-Users mailing list [email protected] http://listserver.u2ug.org/mailman/listinfo/u2-users _______________________________________________ U2-Users mailing list [email protected] http://listserver.u2ug.org/mailman/listinfo/u2-users
