FP Transfer
Kenneth Brody
kenbrody at spamcop.net
Tue Nov 17 09:37:18 PST 2009
Rodgers Hemer wrote:
> I will be transferring files from a Windows server to a SCO server and want to create a single transfer file for use by fptransfer. I don't believe that I can do that in the interactive mode, and there are too large a number of files to fit them all onto one command line. Can anyone tell me if the file names can be put into a text file and have the command line use the text file as the source of the file names to be transferred? If the text file can be used in this manner, what is the exact syntax to be used?
No, you have to pass the filenames on the command line. How many files are
you going to xfer? Windows command lines can be at least 8K in length.
(You no longer have MS-DOS' 127 character limit.)
A quick (untested) batch file could do it like:
========== xferall.bat
@echo off
cd %PFDIR%\filepro
set list=
for /d %%f in (*) do set list=!list! %%f
%PFPROG%\fp\xfer -lf xferall.xfr %list%
==========
Then, execute it with:
cmd /v /c xferall.bat
Note that, in order for the for loop to work, you must start cmd with the
"/v" flag.
--
Kenneth Brody
More information about the Filepro-list
mailing list