
Simple script to upload files to a server via ftp.
Interface should be obvious.
I have posted a tutorial on my site how to upload files using FTP. You can find it HERE
Script
By jos · 2012-08-17

Simple script to upload files to a server via ftp.
Interface should be obvious.
I have posted a tutorial on my site how to upload files using FTP. You can find it HERE
hi Jos
Anubis · 2012-08-28
Did you try scripting FTP with buildin DOS commands, its easy.
Here is example script for upload:
OPEN
ftpserver
Username Password
CD ftp_directory
LCD file_directory
MPUT *
BYEExample download:
OPEN
ftpserver
Username
Password
CD ftp_directory
LCD file_directory
MGET *
BYEAnd using this commands saved in a text file (with real data of'cuz like your server name, user name, pass, and so on) and then call FTP command like this:
FTP -v -i -s:script_file
Where "script_file" is the full file name of your saved script file.
Also can save the session log if you like:
FTP -v -i -s:script_file >> session.log;)
never thought about DOS
jos · 2012-08-28
I've never used DOS commands. Seems incredible easy! Disadvantage is that you need an extra text file to do this, should be possible to create this at run time. I'll will take a look how to encrypt text files, I've seen there's the "System.Security.Cryptographic" namespace. Thanks for this simple solution, I will definitely try this one!