edtFTPnet/PRO - Secure FTP component for .NET | Free Trial | Pricing
Click or drag to resize

ScriptEngine Class

Scripting engine, used to load FTP scripts and execute them. Generally, the only methods used should be the constructor and the ExecuteScript() methods. The setter methods should be used with caution. Typically, when the script is run these setter methods are called to set various properties. This means any properties manually set with these methods will be overwritten.
Inheritance Hierarchy
SystemObject
  EnterpriseDT.Net.Ftp.ScriptScriptEngine

Namespace:  EnterpriseDT.Net.Ftp.Script
Assembly:  edtFTPnetPRO (in edtFTPnetPRO.dll) Version: 12.3.0.0
Syntax
public class ScriptEngine

The ScriptEngine type exposes the following members.

Constructors
  NameDescription
Public methodScriptEngine
Default constructor @throws IOException
Public methodScriptEngine(String, String)
Constructor. Allows user name and password to be passed in
Top
Properties
  NameDescription
Public propertyActiveHighPort
Get the high port for active mode
Public propertyActiveLowPort
Get the low port for active mode
Public propertyClientCertificate
Get the path of the client certificate for FTPS
Public propertyClientPassphrase
Get the passphrase used for the client certificate
Public propertyClientPrivateKey
Get the client private key path
Public propertyClientPrivateKeyPass
Get the passphrase for the client private key
Public propertyCommandMap
Get the map of commands
Public propertyCommonName
Get the set common name for the server. This is what is used to match against the server certificate if the hostname is not to be used.
Public propertyConnectMode
Get the connect mode. PASV by default.
Public propertyDebug
Is debug turned on? Prints out each line before execution if on.
Public propertyEchoCommand
Public propertyFtp
Get a reference to the client being used
Public propertyIgnoreCommonName
Get the setting for ignoring the common name in server certificate validation. This is only used if a server certificate is set. If set to true, the common name in the server certificate is not matched with the hostname of the server (or any set common names). The default is false.
Public propertyKnownHosts
Get the known hosts path
Public propertyLicenseProperties
Get and set license details
Public propertyLocalDir
Get the local working directory
Public propertyLogFile
Get the name (or full path) of the log file
Public propertyLogLevel
Get the log level
Public propertyMaxSSLVersion
Set or get the maximum version of SSL/TLS to be used
Public propertyPassword
Get the user's password
Public propertyPort
Get the port number being used. The default is 0, which means the port will be set internally depending on the protocol used.
Public propertyProtocol
Get the protocol to be used
Public propertyRecordFile
Get path of file used to record script to
Public propertyRecording
Is the engine currently recording commands?
Public propertyRemoteHost
Get the remote host name
Public propertyServerPublicKey
Get the server public key path
Public propertyServerValidation
If true, the server certificate must be validated against the root certificate in the Windows store
Public propertyTimeout
Get the timeout value in seconds. The default is 0, which is an infinite timeout.
Public propertyUser
Get the user
Public propertyVariablesMap
Get the map of variables
Top
Methods
  NameDescription
Public methodCanConnect
Can we connect with the current state?
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodExecuteScript(StreamReader)
Execute the script in the supplied stream
Public methodExecuteScript(String)
Execute the script in the supplied file
Public methodExecuteScript(StreamReader, Boolean)
Execute the script in the supplied stream.
Public methodExecuteScript(String, Boolean)
Execute the script in the supplied file
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodGetVariable
Get a variable that has been set
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodQuit
Quit the session
Public methodRunCommand
Run a command and write the output
Public methodSetActivePortRange
Set the active mode port range to be used
Public methodSetVariable
Set a variable
Public methodStartRecording
Start recording commands to file
Public methodStopRecording
Stop recording commands @throws IOException
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodWriteToRecordFile
Write a line to the script record file
Top
See Also