Visual Basic Code , VB.NET Code, VB Code
  Home   :  Code   :  Forums   :  Submit   :  Mailing List   :  About   :  Contact


INET Folders


INET Folders

Author
Message
Icecold
Icecold
Forum God
Forum God (2.2K reputation)Forum God (2.2K reputation)Forum God (2.2K reputation)Forum God (2.2K reputation)Forum God (2.2K reputation)Forum God (2.2K reputation)Forum God (2.2K reputation)Forum God (2.2K reputation)Forum God (2.2K reputation)

Group: Forum Members
Posts: 13, Visits: 14
I am using Inet in vb6 to upload files to my FTP site.  I have no problems placing files on the FTP Site

but can't figure out how to create a folder

Can someone help me with some code to create a Newfolder if it doen't exist on the ftp site.

I would like to see if the directory exist on the FTP if not create a new directory then upload the file.

Is there something like filesystemobjects for FTP?

        If Not fs.FolderExists(path) Then

            fs.CreateFolder (path)
        End If


Icecold
Icecold
Forum God
Forum God (2.2K reputation)Forum God (2.2K reputation)Forum God (2.2K reputation)Forum God (2.2K reputation)Forum God (2.2K reputation)Forum God (2.2K reputation)Forum God (2.2K reputation)Forum God (2.2K reputation)Forum God (2.2K reputation)

Group: Forum Members
Posts: 13, Visits: 14
Ok I figured out how to create a folder or directory by using

FtpCreateDirectory hConnection, "testing"

My next part is to see if this folder or directory already exist

If it does then I don't need to create a new folder

else

FtpCreateDirectory hConnection, "testing"

end if

What should I use to see if it exist

Ftpsetcurrentdirectory or FTPgetcurrentdirectory.

and how should I use it.

GO


Similar Topics


Reading This Topic


Login
Existing Account
Email Address:


Password:


Social Logins

Select a Forum....

















A1VBCode Forums


Search