ftp/Simple.js

///////////////////////////////////////////////////////////////////////////////////
//
// Simple
//
// Purpose: 
//   Connects to remote server.
//
///////////////////////////////////////////////////////////////////////////////////
var obj = new ActiveXObject("sfFTPLib.FTPConnectionSTA");

// Settings
obj.Host = "ftp.smartftp.com";
obj.Port = 21;
obj.Protocol = 0 /*ftpProtocolNormal*/;
obj.Username = "anonymous";
obj.Password = "test@test.com";
obj.Passive = true;
obj.MLST = true;
//var fileLogger = obj.SetFileLogger();
//fileLogger.File = ".\\ftp.log";

obj.Connect();
WScript.Echo("Connected");
obj.Disconnect();