get_file Method

Gets the specified file.


def get_file() -> None: ...


This method gets the specified file. A connection is made with the remote_host using the specified protocol, user, and password, and a request is sent to read the file specified by remote_file.

Example (Get a File)

RCPControl.RemoteHost = "MyServer"
RCPControl.User = "username"
RCPControl.Password = "password"
RCPControl.Protocol = protRexec
RCPControl.RemoteFile = "/remotefile.txt"
RCPControl.LocalFile = "C:\filename.txt"

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks 2020 Python Edition - Version 20.0 [Build 8161]