AlHal2
asked on
Converting FTP script to SFTP
The code below allows me to log into an FTP server decide which directory I want and delete some files.
Please could you enable it to work on an SFTP server?
Please could you enable it to work on an SFTP server?
Set HostName=xx
set USERID=xx
set PWD=xx
set ScriptDir=xx
set FTPSCRIPT=%ScriptDir%\$tempftp$.$$$
echo open %HOSTNAME%>%FTPSCRIPT%
echo user %USERID% %PWD%>>%FTPSCRIPT%
echo cd newdirectory\subdirectory
echo mdel *.*>>%FTPSCRIPT%
echo bye >>%FTPSCRIPT%
ftp -i -n -s:%FTPSCRIPT%
ASKER
Is it possible to do this without downloading any software?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks.
http://winscp.net/eng/docs/commandline