William Kitchen says:
The command line ftp utility that comes with WIN95 and above is scriptable. You invoke it from the command line like this:ftp -s:myscript.txt
The script file is just a list of what you would normally have typed manually. Here's an example of how someone might synchronize Netscape bookmarks between work and home.open myofficemachine.somedomain.com myusername mypassword cd c:\progra~1\netscape\users\me lcd "c:\progra~1\netscape\users\me get bookmark.htm bye
If you want to make the process even easier, you can create a batch file something like the following and call it something like "getbookmarks.bat". This batch passes itself to the ftp program as an argument (the first line is the clever part, notice the %0), so that everything is self contained. The batch interpreter skips the ftp script, and the ftp program generates a couple of harmless error messages, but otherwise safely ignores the lines that aren't part of the ftp script. The batch looks something like this:ftp -s:%0.bat goto done open myofficemachine.somedomain.com myusername mypassword cd c:\progra~1\netscape\users\me lcd "c:\progra~1\netscape\users\me get bookmark.htm bye :done
|file: /Techref/app/inet/ftps.htm, 2KB, , updated: 2004/3/15 13:59, local time: 2018/9/23 23:44,
|©2018 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions?|
<A HREF="http://www.piclist.com/techref/app/inet/ftps.htm"> Internet - File Transfer Protocol</A>
|Did you find what you needed?|
PICList 2018 contributors:
o List host: MIT, Site host massmind.org, Top posters @20180923 RussellMc, Van Horn, David, Sean Breheny, David C Brown, Bob Blick, Isaac M. Bavaresco, Neil, Denny Esterline, Harold Hallikainen, John Gardner,
* Page Editors: James Newton, David Cary, and YOU!
* Roman Black of Black Robotics donates from sales of Linistep stepper controller kits.
* Ashley Roll of Digital Nemesis donates from sales of RCL-1 RS232 to TTL converters.
* Monthly Subscribers: Gregg Rew. on-going support is MOST appreciated!
* Contributors: Richard Seriani, Sr.
Welcome to www.piclist.com!