"Fossies" - the Fresh Open Source Software Archive

Member "FTPRush/scripts/DirectTransfer.cs" (12 Mar 2021, 442 Bytes) of package /windows/misc/FTPRush.zip:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C# source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 //This script will download "Autumn.jpg" and "Spring.jpg" from "demo.wftpserver.com" to local computer's Documents directory via FTP protocol.
    2 Server source = new Server{ Host ="demo.wftpserver.com", Username="demo", Password="demo" };
    3 Transfer.TransferFile(source, Server.Local, "/download/Autumn.jpg", "~Documents/Autumn.jpg");
    4 Transfer.TransferFile(source, Server.Local, "/download/Spring.jpg", "~Documents/");   //Use the source file name