psftp -b switch (batch file)

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
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%")

If "cfg_path" varies how does one pass this correctly to psftp -> put ?

Re: psftp -b switch (batch file)

Quoted text here. Click to load it

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

Site Timeline