Re: psftp -b switch (batch file)
- From: Jacob Nevins <jacobn@xxxxxxxxxxxxxxxxxxxxxx>
- Date: 13 Nov 2007 13:06:42 +0000 (GMT)
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).
.
- References:
- psftp -b switch (batch file)
- From: K.Faw
- psftp -b switch (batch file)
- Prev by Date: psftp -b switch (batch file)
- Next by Date: OpenSSH on Windows 2003 SFTP File permisssions
- Previous by thread: psftp -b switch (batch file)
- Next by thread: OpenSSH on Windows 2003 SFTP File permisssions
- Index(es):