FTP disk

FTP disk

Postby Natter » Fri Oct 02, 2020 3:06 pm

Hi,

When an FTP connection is made to a resource, I get a virtual disk. I need to scan the files on this disk. However, the directory() function does not see this disk. What's the matter?
Natter
 
Posts: 1133
Joined: Mon May 14, 2007 9:49 am

Re: FTP disk

Postby Otto » Fri Oct 02, 2020 6:30 pm

Hello,
which class do you use for the FTP connection?
Have you tested the ftpdir.prg from the FIVEWIN samples.
Best regards,
Otto
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6064
Joined: Fri Oct 07, 2005 7:07 pm

Re: FTP disk

Postby Natter » Sat Oct 03, 2020 6:47 am

I made an FTP connection using Total Commander, so the program on FW does not see the disk. Thank You, Otto !
Natter
 
Posts: 1133
Joined: Mon May 14, 2007 9:49 am

Re: FTP disk

Postby Otto » Sat Oct 03, 2020 7:45 am

Hello Natter,
There is a tool called netDrive, where you can map a drive. I tested some time. But I decided to use other connections.
Look inside my videos for "ecrverbund".

https://www.modharbour.club/mh_videogallery/index.prg

Best regards,
Otto
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6064
Joined: Fri Oct 07, 2005 7:07 pm

Re: FTP disk

Postby Marc Venken » Sat Oct 03, 2020 12:38 pm

Otto,

In the gallery i see Autocode software. It seems to be yours since there is no recent link.... in the forum (also not in the contribution section)

Is it a commercial product ?
Marc Venken
Using: FWH 23.04 with Harbour
User avatar
Marc Venken
 
Posts: 1356
Joined: Tue Jun 14, 2016 7:51 am
Location: Belgium

Re: FTP disk

Postby Marc Venken » Sat Oct 03, 2020 12:49 pm

Natter wrote:Hi,

When an FTP connection is made to a resource, I get a virtual disk. I need to scan the files on this disk. However, the directory() function does not see this disk. What's the matter?


I think the code you can use is inside this topic ?

viewtopic.php?f=3&t=34465&hilit=link+to+ftp
Marc Venken
Using: FWH 23.04 with Harbour
User avatar
Marc Venken
 
Posts: 1356
Joined: Tue Jun 14, 2016 7:51 am
Location: Belgium

Re: FTP disk

Postby Otto » Sat Oct 03, 2020 3:46 pm

Hello Marc,
no it is not commercial. I can give it to you.
Do you use resources or hardcoded dialogs?
It only suports hardcoded style.
Best regards,
Otto

Please download https://mybergland.com/fwforum/autocode.zip and extract the file.

Then run adc.EXE. You get a little window.
Make, for example a say command in your FIVEWIN source - press CTRL+C and click on the paste button.
Then autocode should open and you should see your command with all possible parameters.
Is this working?

Redefine is not supported as I do not use. But if someone needs, we could edit the acd5.ch file.

Then you have to press button copy the changes are then in clipboard. With Ctrl + V you copy the changes back to your source.
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6064
Joined: Fri Oct 07, 2005 7:07 pm

Re: FTP disk

Postby Marc Venken » Sat Oct 03, 2020 8:54 pm

Otto,

I don't use resources in this project.

The program is working, but i have to search more in the forum for samples of use.

It works with text like this ( the code in in autocode)

WITH OBJECT oRec:oBrw
:MakeTotals()
:RefreshFooters()
Eval( :bChange, oRec:oBrw )
END

But i see nothing with this :

@ 60,1500 GET oGet VAR cEan SIZE 150,26 PIXEL OF oDlg VALID lookupean ( cEan )

I have to see witch part of the code has to be selected for the code to work

BTW : I use multiEdit
Marc Venken
Using: FWH 23.04 with Harbour
User avatar
Marc Venken
 
Posts: 1356
Joined: Tue Jun 14, 2016 7:51 am
Location: Belgium

Re: FTP disk

Postby Otto » Sat Oct 03, 2020 10:20 pm

Marc,
you have to select
@ 60,1500 GET oGet VAR cEan SIZE 150,26 PIXEL OF oDlg VALID lookupean ( cEan )
in your code. PRESS CTRL-C and then paste - button in AUTOCODE.
Image
Then you can make your changes in AUTOCODE.
PRESS button copy and CTRL-C in your editor.

Best regards,
Otto
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6064
Joined: Fri Oct 07, 2005 7:07 pm

Re: FTP disk

Postby Marc Venken » Sun Oct 04, 2020 8:37 am

The get is not working yet.
I also copy/paste into word in order to see that Multiedit is not the problem (copy is the + (plus) sign

Copy/paste from word also not working for the get, but working for the other code.

Also unzipped the file again... same result

The setup button has no effect (no reaction) but maybe this is correct ?

[img]
https://www.maveco.be/fivewin/autocode.png
[/img]
Marc Venken
Using: FWH 23.04 with Harbour
User avatar
Marc Venken
 
Posts: 1356
Joined: Tue Jun 14, 2016 7:51 am
Location: Belgium

Re: FTP disk

Postby Otto » Sun Oct 04, 2020 9:28 am

Hello Marc,
Please see this video:

https://mybergland.com/fwforum/acget.mp4
Best regards,
Otto
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6064
Joined: Fri Oct 07, 2005 7:07 pm

Re: FTP disk

Postby Marc Venken » Sun Oct 04, 2020 9:59 am

I do it also like you, but no result...

How to make the vido like you did ? Than I can show it also

Here the content of adc dir.

Image
Marc Venken
Using: FWH 23.04 with Harbour
User avatar
Marc Venken
 
Posts: 1356
Joined: Tue Jun 14, 2016 7:51 am
Location: Belgium

Re: FTP disk

Postby Marc Venken » Sun Oct 04, 2020 10:02 am

If I copy the code from your post above

@ 60,1500 GET oGet VAR cEan SIZE 150,26 PIXEL OF oDlg VALID lookupean ( cEan )

and 'Paste Code" also no effect.
Marc Venken
Using: FWH 23.04 with Harbour
User avatar
Marc Venken
 
Posts: 1356
Joined: Tue Jun 14, 2016 7:51 am
Location: Belgium

Re: FTP disk

Postby Marc Venken » Sun Oct 04, 2020 10:04 am

Should I copy some of the files into the application dir maybe ?
Marc Venken
Using: FWH 23.04 with Harbour
User avatar
Marc Venken
 
Posts: 1356
Joined: Tue Jun 14, 2016 7:51 am
Location: Belgium

Re: FTP disk

Postby Otto » Sun Oct 04, 2020 10:26 am

Marc, no it should work.
I can check with TV if you want
Best regards,
Otto
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6064
Joined: Fri Oct 07, 2005 7:07 pm

Next

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 56 guests