FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Create folders to upload files
Posts: 69
Joined: Wed Mar 29, 2006 10:54 PM
Create folders to upload files
Posted: Wed Jun 27, 2007 12:58 PM

Hi Everybody,

I use icopyfil.prg (fwh\samples) to upload/download files from web but i don't know how to create folders.

Someone has an sample?

Thanks in advance.

Saludos



Alvaro Urdaneta



Fwh 25.09, xharbour1.3.1, bcc77, Brw45

Posts: 824
Joined: Thu Oct 13, 2005 07:39 AM
Create folders to upload files
Posted: Wed Jun 27, 2007 03:36 PM

Alvaro,

do you mean directories or a folder control ?

Directories can be created with lMkDir (cDir) -> lSuccess.

kind regards

Stefan
Posts: 69
Joined: Wed Mar 29, 2006 10:54 PM
Create folders to upload files
Posted: Wed Jun 27, 2007 03:50 PM

Stefan,

I want to create directories in my web site, not in a local disk. I want to upload files from local disk to www. I use tftp.

Regards

Saludos



Alvaro Urdaneta



Fwh 25.09, xharbour1.3.1, bcc77, Brw45

Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Create folders to upload files
Posted: Wed Jun 27, 2007 04:12 PM
Alvaro,

Add this method to Class TFtp:
   METHOD CreateDirectory( cDirName ) INLINE ;
            FtpCreateDirectory( ::hFTP, cDirName )
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 69
Joined: Wed Mar 29, 2006 10:54 PM
Create folders to upload files
Posted: Wed Jun 27, 2007 05:02 PM

Antonio,

Thanks, it´s working fine!!!

Ragrds,

Saludos



Alvaro Urdaneta



Fwh 25.09, xharbour1.3.1, bcc77, Brw45

Continue the discussion