Ole atomation in c#

I write vbs that create ole atomation object

On Error Resume Next
dim objShell
dim objFolder      
if not objFolder is nothing then
objFolder.CopyHere "ftp://anonymous:123@ftp.microsoft.com/bussys"
WScript.Sleep 100
end if 
set objShell = nothing
set objFolder = nothing

How to do that on C# (or do that without ole automation just use com) ? Or do that on c++ without MFC.

Answers


Here you will find an article on how to do FTP from C#. Basically it uses the FtpWebRequest class. I am sure you now have enough information to write the code yourself.

In order to download whole directories you would need to look for the files in the folder (ListFolder method) and then download all the files (DownloadFile for each file).


Need Your Help

iOS Application crashes when using SpriteKit's TextureAtlas and building over Xcode command-line

objective-c command-line ios7 xcode5 sprite-kit

We use the new SpriteKit framework in iOS 7 to develop small games. To build and distribute new versions of our games, we use a build and deploy server which uses Xcode5's command-line tools.

How to decompile an exe file compiled by py2exe?

python py2exe decompiler

How to decompile an exe file compiled by py2exe?