Create folders to upload files

Create folders to upload files

Postby Alvaro Urdaneta » 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 10.8, xharbour1.2.1, bcc582, Brw45
Alvaro Urdaneta
 
Posts: 67
Joined: Wed Mar 29, 2006 10:54 pm
Location: Venezuela

Postby StefanHaupt » Wed Jun 27, 2007 3:36 pm

Alvaro,

do you mean directories or a folder control ?

Directories can be created with lMkDir (cDir) -> lSuccess.
kind regards
Stefan
StefanHaupt
 
Posts: 824
Joined: Thu Oct 13, 2005 7:39 am
Location: Germany

Postby Alvaro Urdaneta » Wed Jun 27, 2007 3: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 10.8, xharbour1.2.1, bcc582, Brw45
Alvaro Urdaneta
 
Posts: 67
Joined: Wed Mar 29, 2006 10:54 pm
Location: Venezuela

Postby Antonio Linares » Wed Jun 27, 2007 4:12 pm

Alvaro,

Add this method to Class TFtp:
Code: Select all  Expand view
   METHOD CreateDirectory( cDirName ) INLINE ;
            FtpCreateDirectory( ::hFTP, cDirName )
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42078
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby Alvaro Urdaneta » Wed Jun 27, 2007 5:02 pm

Antonio,

Thanks, it´s working fine!!!

Ragrds,
Saludos

Alvaro Urdaneta

Fwh 10.8, xharbour1.2.1, bcc582, Brw45
Alvaro Urdaneta
 
Posts: 67
Joined: Wed Mar 29, 2006 10:54 pm
Location: Venezuela


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 33 guests