W dniu 24.06.2025 o 19:45, Jon Perryman pisze:
On Tue, 24 Jun 2025 19:15:06 +0200, Massimo Biancucci<[email protected]> wrote:
I think you can generate the FTP script with a .bat o .ps1 and then execute it.
.bat files do not have an FTP API which means you must visually verify that
each file transferred successfully. This is fine for a 1 time situation but may
become annoying if used on a regular basis.
Languages like Python with an FTP library typically throw exceptions for any
failed command. Since I've never used any FTP libraries, I can't tell you if
the exceptions are reliable nor if there are alternative methods to determine
if a command failed.
Actually I'm looking for something *simple*. KIS rules.
Python is not standard part of Windows image and many corporations do
not allow any installations, even if the software is whitelisted
(helpdesk person can do it - but that means ticket, acceptance,
bureaucracy and time).
So, it is much simpler to copy all the files to temporary catalog, then
mass-rename it with single command the use ftp.
However I wanted to make it even simpler, with no copy and rename. I
hoped there is such feature in ftp - but it seems I was wrong.
--
Radoslaw Skorupka
Lodz, Poland
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN