ftp/Simple.js

///////////////////////////////////////////////////////////////////////////////////
//
// Simple
//
// Purpose: 
//   Connects to remote server.
//
// Copyright (c) by SmartSoft Ltd.
//
///////////////////////////////////////////////////////////////////////////////////
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;
obj.LogFile.File = ".\\SimpleLog.log";

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