Working with the Internet in Alaska 2.0
- 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
The command doesn't work: aFileUpd := oFtp:Directory("Downloads.exe")
Returns an empty array.
Returns an empty array.
Re: Working with the Internet in Alaska 2.0
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:
: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.
- 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
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?
Re: Working with the Internet in Alaska 2.0
You will need to know what is the path on the server.
The eXpress train is coming - and it has more cars.
- 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
I know this: in the root directory on the server: http://lc.kubagro.ru/Downloads.exe
Re: Working with the Internet in Alaska 2.0
Try leaving out the http://
The eXpress train is coming - and it has more cars.
- 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
Thanks! I'll try. What's interesting: previously worked
Re: Working with the Internet in Alaska 2.0
Was that when you were using Xb2.Net?Eugene Lutsenko wrote: ↑Thu Dec 10, 2020 8:52 am Thanks! I'll try. What's interesting: previously worked
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
Real Business Applications Ltd
http://www.rbauk.com
- 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
Of course I did. This is my website that I created. But I decided to try it all on another site.
Re: Working with the Internet in Alaska 2.0
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..
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
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