Re: psftp -b switch (batch file)



K.Faw <k.fawcett@xxxxxxxxxxxxxxxx> writes:
Is it possible to use local variables with psftp method calls inside
of batch files?
Batch file example:

!SET putFile= %cfg_path%\\UPLOAD.DAT <=====run local windows command
put %putFile% <=====not sure what to use here - psftp interprets
%putFile% literally ("can't find %putFile%")

No, there's no way to do variable substitution within PSFTP currently.
You'd either have to write the .BAT file dynamically, or control PSFTP
from some scripting language (and I don't know how well that would
work).
.