Script to Iterate through Multiple Folders on a Remote Site
Martin and others,
Thanks to all of you for the help you've provided as I implement WinSCP on my program. Great team on the fora with tremendously helpful information.
I'm attempting to replace a well-worn Python SFTP script we've used for years with WinSCP scripts as Python 2.* has reached end-of-life. The original developer is long gone and I haven't the Python to rewrite the encryption stuff.
What the script does, in a nutshell, is read a config file in the format:
The script then makes it's connection (currently listed in the bat file that calls it, but I've already recreated this using your information and power shell) and iterates through each line downloading any new files (again using your great information) from the first location to the second location.
What I haven't yet located is an example of using a list of locations like this. Could one of you point me that way?
Thanks!
VtR
Thanks to all of you for the help you've provided as I implement WinSCP on my program. Great team on the fora with tremendously helpful information.
I'm attempting to replace a well-worn Python SFTP script we've used for years with WinSCP scripts as Python 2.* has reached end-of-life. The original developer is long gone and I haven't the Python to rewrite the encryption stuff.
What the script does, in a nutshell, is read a config file in the format:
/from/path|c:\download\location
The script then makes it's connection (currently listed in the bat file that calls it, but I've already recreated this using your information and power shell) and iterates through each line downloading any new files (again using your great information) from the first location to the second location.
What I haven't yet located is an example of using a list of locations like this. Could one of you point me that way?
Thanks!
VtR