Link to home
Start Free TrialLog in
Avatar of nachtmsk
nachtmskFlag for United States of America

asked on

SFTP on windows server 2008 R2

Hi,
I need to use a script on a Windows 2008 server to connect to an sftp site to pull down a file. The site I'm pulling from just switched to sftp from regular ftp. I was using a perl script to pull the file down.
I can use pretty much any scripting language though. I'd just like to get this done quickly.

So, the thing is I need to create an automated way to SFTP a file from a remote server to my 2008 server.
I know 2008 doesn't natively support SFTP. Can someone suggest a good solution for this problem please?
Thanks!
ASKER CERTIFIED SOLUTION
Avatar of netcmh
netcmh
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
You can script something like this together with winscp:

"C:\Program Files (x86)\WinSCP\WinSCP.com" /script="c:\<pathtofile>\testscript.txt" /ini="C:\Program Files (x86)\WinSCP\WinSCP.ini" /log="c:\<pathtofile>\logscript.txt"

where <pathtofile> is the actual path to the file.
Thanks for the grade. Good luck.