Working with the Internet in Alaska 2.0

This forum is for eXpress++ general support.
Message
Author
User avatar
Eugene Lutsenko
Posts: 1649
Joined: Sat Feb 04, 2012 2:23 am
Location: Russia, Southern federal district, city of Krasnodar
Contact:

Re: Working with the Internet in Alaska 2.0

#11 Post by Eugene Lutsenko »

The command doesn't work: aFileUpd := oFtp:Directory("Downloads.exe")
Returns an empty array.

User avatar
rdonnay
Site Admin
Posts: 4729
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: Working with the Internet in Alaska 2.0

#12 Post by rdonnay »

You may need to give it a full path.

:directory( [<cDirectory>], [<cAttribute>] ) --> aDirectory

Parameters
<cDirectory>
<cDirectory> is a character string specifying the drive, path and file from which file information is read into an array. A file mask can be defined by using "wildcards" (* or ?) as part of the file name. If no <cDirectory> is specified, "*" is used, and all file information in the current path is read.

<cAttribute>
The argument <cAttribute> is a string which can be used to extend the files placed in the array based on their file attributes. <cAttribute> may specify one or more of the following characters: "D","H","S". The meaning of the valid characters for <cAttribute> is as follows:
The eXpress train is coming - and it has more cars.

User avatar
Eugene Lutsenko
Posts: 1649
Joined: Sat Feb 04, 2012 2:23 am
Location: Russia, Southern federal district, city of Krasnodar
Contact:

Re: Working with the Internet in Alaska 2.0

#13 Post by Eugene Lutsenko »

I read this in help. I had this idea. But this is the path not on the local computer, but on the hosting. And what is the path there? Start with an IP address?

User avatar
rdonnay
Site Admin
Posts: 4729
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: Working with the Internet in Alaska 2.0

#14 Post by rdonnay »

You will need to know what is the path on the server.
The eXpress train is coming - and it has more cars.


User avatar
rdonnay
Site Admin
Posts: 4729
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: Working with the Internet in Alaska 2.0

#16 Post by rdonnay »

Try leaving out the http://
The eXpress train is coming - and it has more cars.

User avatar
Eugene Lutsenko
Posts: 1649
Joined: Sat Feb 04, 2012 2:23 am
Location: Russia, Southern federal district, city of Krasnodar
Contact:

Re: Working with the Internet in Alaska 2.0

#17 Post by Eugene Lutsenko »

Thanks! I'll try. What's interesting: previously worked

reganc
Posts: 257
Joined: Thu Jan 28, 2010 3:08 am
Location: Hersham, Surrey, UK
Contact:

Re: Working with the Internet in Alaska 2.0

#18 Post by reganc »

Eugene Lutsenko wrote: Thu Dec 10, 2020 8:52 am Thanks! I'll try. What's interesting: previously worked
Was that when you were using Xb2.Net?
You could also try just doing :Directory("/Downloads.exe")

Have you ever used an FTP Client like FileZilla to access the same ftp site? It might point you to what is wrong...
Regan Cawkwell
Real Business Applications Ltd
http://www.rbauk.com

User avatar
Eugene Lutsenko
Posts: 1649
Joined: Sat Feb 04, 2012 2:23 am
Location: Russia, Southern federal district, city of Krasnodar
Contact:

Re: Working with the Internet in Alaska 2.0

#19 Post by Eugene Lutsenko »

Of course I did. This is my website that I created. But I decided to try it all on another site.

bwolfsohn
Posts: 648
Joined: Thu Jan 28, 2010 7:07 am
Location: Alachua, Florida USA
Contact:

Re: Working with the Internet in Alaska 2.0

#20 Post by bwolfsohn »

in my "unique" programming/debugging style, i would just throw in a couple of dozen

wtf directory('myfilename.exe')
wtf directory('/myfilename.exe')
wtf directory('c:\myfilename.exe')
wtf directory('c:\mydirectory\myfilename.exe')
wtf directory('//myserver/myfilename.exe')
etc etc etc and see what the replies were..
Brian Wolfsohn
Retired and traveling around the country to music festivals in my RV.
OOPS.. Corona Virus, so NOT traveling right now...
http://www.breadmanrises.com
FB travel group: The Breadman Rises

Post Reply