put_file Method

Upload a file specified by LocalFile to the TFTP server.

Syntax

def put_file() -> None: ...

Remarks

The local file specified by local_file is uploaded to the remote file specified by remote_file.

Example (Put a File)


TFTPControl.TFTPServer = "MyServer"
TFTPControl.LocalFile = "C:\filename.txt"
TFTPControl.RemoteFile = "/remotefile.txt"
TFTPControl.PutFile()

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