Thanks to this thread I found out about a very straightforward way in VB 2010 to upload & download files via FTP (shown below). What is the most straightforward way to create a directory on my FTP server, delete a file on the server, and check for a file or directory's existence on the server, please?

I didn't see anything in the intellisense that seems to correspond to these tasks, and the articles I'm finding via Google etc all seem to have fairly lengthy solutions for these sorts of tasks, and the upload/download tasks as well. The existence of such a compact solution in VS 2010 for the latter tasks makes me suspect that there may be something similar for the former as well, but I've not located it yet.

Many thanks,

H.B.

Code:
        Dim FileOnServer As String = "ftp://ftp.mydomain.com/subdir/myfile.txt"
        Dim LocalFile As String = "C:\FTP_Test_result.txt"
        Dim UserName As String = "[email protected]"
        Dim Password As String = "mypassword"

        If My.Computer.FileSystem.FileExists(LocalFile) Then            
            My.Computer.FileSystem.DeleteFile(LocalFile)
        End If

        My.Computer.Network.DownloadFile(FileOnServer, LocalFile, UserName, Password)