FTP files in Windows Scripting Host?

What is the recommended way to transfer files via FTP and programmatically (rename, move, delete) files on an FTP server in a Windows Scripting Host script (JavaScript / VBScript) file? It is advisable not requiring third-party ActiveX add-ons, since for this "additional" software it is necessary to go through the approval process, which will take a very long time, even for free (like in beer) and / or open source.

The script will run on Windows Server 2003 in a data center environment.

Thanks.

+3
source share
1 answer

, , , - Shell ftp.exe.

FTP: -

Dim oShell : Set oShell = CreateObject("WScript.Shell")
oShell.Run "c:\windows\system32\ftp.exe -s:myftpcommands.txt", , True
+2

Source: https://habr.com/ru/post/1721563/


All Articles