Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Is there a dos ftp program that runs with command line switches (ex: pkzip25.exe -add C:\file.txt)

I wrote a batch file for frequent up/downloads. Saves me time. Does this help?
Just replace the the stuff inside #...# with your data. If someone's got something better, or have the time to make this script intelligent -- I'd like to hear. Cheers!::Run ftp client to fetch data from #host#
::Use for one-off data transfer
::hari -- 27/06/2000
::Name this file #host#.bat
@echo offif "%1"=="" goto showHelp
set transactionType=%1
set transactionMode=%2
set localDirectory=lcd %3
set hostDirectory=cd %4
set fileName=%5echo user #user# #password# >ftpCmds.tmp
echo %localDirectory% >>ftpCmds.tmp
echo %hostDirectory% >>ftpCmds.tmp
echo %transactionMode% >>ftpCmds.tmp
echo %transactionType% %fileName% >>ftpCmds.tmp
echo close >>ftpCmds.tmp
echo bye >>ftpCmds.tmpftp -v -i -n -s:ftpCmds.tmp #host_name# >nul
del ftpCmds.tmp
echo transfer complete...
set transactionType=
set transactionMode=
set localDirectory=
set hostDirectory=
set fileName=
goto endFtp:showHelp
echo usage: #host# ((m)get or (m)put) (asc or bin) localdirectory hostdirectory filename:endFtp

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |