.NET Framework Bookmark and Share   
 index > .NET Framework Networking and Communication > FTP File Transfer
 

FTP File Transfer

Hi,

I want to automate a file transferfrom one location to another(within the same system)using FTP.I 'm new to this.

Please help me toacheive this.

thanks,
SK

SaranyaKarthik
It's in spanish, but you could understand easily the code:

http://vtortola.net/post/Enviar-un-Stream-por-FTP.aspx

http://vtortola.net/post/Enviar-un-archivo-por-FTP.aspx

Cheers.
.: Valeriano Tórtola MCTS WPF :.: http://www.vtortola.net :.
vtortola

If you are looking to transfer file from one location to another in the same system, then why do you want to use FTP. You can easily do that use classes in System.IO


System.IO.File.Move("Source Path","Destination Path")
My.Computer.FileSystem.MoveFile("Source Path","Destination Path")


But if you want to use FTP then link by vtortola could help. You can also use UploadFile method of WebClient class.


Gaurav Khanna
Khanna Gaurav

If you are looking to transfer file from one location to another in the same system, then why do you want to use FTP. You can easily do that use classes in System.IO


System.IO.File.Move("Source Path","Destination Path")
My.Computer.FileSystem.MoveFile("Source Path","Destination Path")


But if you want to use FTP then link by vtortola could help. You can also use UploadFile method of WebClient class.


Gaurav Khanna

Thanks for your reply.

I have one FTP script file.I'm going to call this using a batch file.
Is there any possibility to pass the value to the FTP file from batch file.
Example: We have get commands to get the file from the folder.So fot that we have to change the dir to required location.
lcd location
get file.txt

location of the path should be passed as a variable thru the batch file.

please help me to resolve this issue.

Thanks,
saranya.
SaranyaKarthik

You can use google to search for other answers

Custom Search

More Threads

• Mail Problem with outlook account and IIS SMTP Server
• Network Exe execution on same server's memory (.net)
• How to use MS Internet Transfer Control in Word 2007 Macro?
• transactional receives of messages from a remote queue
• Need to inspect SSL cert I (client) receive from server
• How to setup a basic SMTP configuration?
• Exception in the listener thread
• SIZE (via WebRequestMethods.Ftp.GetFileSize) is always 0
• Facing Problem in Writing Code in C# to increment the Performance Counter "Current Queue Length"
• Not able make published website work on remote system