I am currently
FTP'ing file to a unix box from a
windows server. I want to change the following section of the script and migrate the ftp process to be
@echo off echo user %user%> ftpcmd.dat echo %password%>> ftpcmd.dat echo bin>> ftpcmd.dat echo put %filetobeuploaded% %filepath%%File%>> ftpcmd.dat echo quit>> ftpcmd.dat ftp -n -s:ftpcmd.dat %host% del ftpcmd.dat :END
PSFTP.EXE installed on my windows directory. Using that can I send the files with SFTP ?
How can I replace line
ftp -n -s:ftpcmd.dat %host% to be SFTP. I understand you can do something like this....
CALL PSFTP.EXE someUserName@220.127.116.11 ....
If anybody is familiar, please can you help me complete it. what arguments would I give. user, pw, remotedir, host details are kept in a properties file. Im looking to use keys instead of password. Can you pass the existing ftpcmd.dat arg to psftp?