0
I have this command in .batch file.
Can someone explain me what it is doing?
ftp -d -s:c:/somefolder/file_xfer/ftpcmds.txt > c:/somefolder/file_xfer/xfer_prt.txt
I need to know because I am asked to change ftp to SFTP but I do not find SFTP in windows.
I found PSFTP from putty
Any feedback will be appreciated
Edit
xfer_prt file has following content
open SERVERNAME
USER username
PASS passwordhere
prompt
cd /somedir/somedir2
CWD /somedir/somedir2
mput C:\somedir2\*
PORT ##,##,##,##,###,### (## some numbers I don't want to share.
STOR somefile.html
STOR Runner.flag
quit
QUIT
2Did you try
ftp /?
to see what the switches mean?-d
prints extra debugging information,-s:path\to\ftpcmds.txt
is a script tellingftp
where to connect and what to do after connecting, and> path\to\xfer_prt.txt
redirects the output offtp
from the console to a text log. – rojo – 2013-03-28T14:17:49.647I did
ftp /?
I understood-d
but when it did-s
but I don't understand where it is ftping to since it has path to local C:/ drive why use ftp ? – Mowgli – 2013-03-28T14:33:35.8471You should post contents of c:/somefolder/file_xfer/ftpcmds.txt, because that's what matters. The file should contain FTP commands to connect, transfers, etc... – None – 2013-03-28T14:57:27.873
Thanks, I saw tht too, I after I follow the linking and the process of calling this ftp. it is opening someserver and logs in with user and pass. – Mowgli – 2013-03-28T17:16:05.253
@MartinPrikryl Please see edit of
xfer_prt.txt
posted – Mowgli – 2013-03-28T17:22:07.457