FTP Upload

2 votes
Version: 
1.00
Date Updated: 
08/17/2012

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

AttachmentSize
ftpupload.ms34.14 KB

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
jos's picture

never thought about DOS

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!

Anubis's picture

hi Jos

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 *
BYE

Example download:

OPEN
ftpserver
Username
Password
CD ftp_directory
LCD file_directory
MGET *
BYE

And 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

;)

my recent MAXScripts RSS (archive here)

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.