I tested indy and did get it to connect to the ftp without any problems. I
even go it to return to me the directory listing, I just couldn't figure out
how to use the parsers that come with it to make the listing more helpfull.
Could you give me an example of how this is suposed to work?
The way it is supposed to work is transparently with a self-registering
mechanism where class references are added to a global object and the FTP
client uses that object. You use the DirectoryListing property. That's a
collection of objects. You then access properties in the objects such as
LocalFileName, Size, and ModifiedDate. That's at a basic level. Most of
the time, you will get a directory listing in the Unix or Windows NT
directory formats (that's about 99% of them).
At a more advance level, you can see what data the parser will return with
the ListParserCapabilities property. That's a set which could include the
following:
Capability Property Name
flcUnixOwnerPermissions - UnixOwnerPermissions
flcUnixGroupPermissions - UnixGroupPermissions
flcUnixOtherPermissions - UnixOtherPermissions
There's some other capabilities that may appear in that set and those
correspond in names with the property values. The rest of the capabilities
are:
flcItemCount,
flcOwnerName,
flcGroupName,
flcSize,
flcModifiedDate,
flcModifiedDateGMT,
flcCreatedDate,
flcCreatedDateGMT,
flcUniqueID,
flcLinkedItemName,
flcUnixinode,
flcUnitreeFileFamily,
flcRecLength,
flcRecFormat,
flcNumberRecs,
flcNumberBlocks,
flcBlockSize,
flcVMSSystemPermissions,
flcVMSOwnerPermissions,
flcVMSGroupPermissions,
flcVMSWorldPermissions,
flcNovellPermissions,
flcMigrated,
flcMVSDSOrg,
flcMVSVolume,
flcMVSUnit,
flcMVSNumberTracks,
flcMVSNumberExtents,
flcMVSJobStatus,
flcMVSJobSpoolFiles,
flcMVSJESInf2Details,
flcVSEPQDisposition,
flcVSEPQPriority,
flcRTOSMemStart,
flcRTOSMemEnd,
flcOS9OwnerPermissions,
flcOS9PublicPermissions,
flcOS9MiscPermissions,
flcOS9Sector,
flcHP3000Limit,
flcDist32FileAttributes,
flcMLISTPermissions
A lot of these are platform specific items that you may not really need
unless you are dealing with those particular servers. I added them in an
attempt to NOT dumb down to a lowest common denominator. Different
platforms have different capabilities and the file systems will be totally
different. A few IBM mainframes can use FTP as an interface to a job queue.
You can get the name of the parser identifier string with the DirFormat
property.
I admit that this sounds complex but don't let that intimidate you. The
idea is that a developer may selectively present columns to a user
depending upon the directory list format.
If the DirectoryListing property doesn't work, than please let us know.
I can't really tell you how to use this stuff in Visual Studio as I don't
know C# or VB# and I don't have Visual Studio at all and I wouldn't know
how to use it even if I did have it. I program primarily in Borland
Delphi.
HTH.
--
J. Peter Mugaas - Indy Pit Crew
Internet Direct (Indy) Website -
http://www.nevrona.com/Indy
Personal Home Page -
http://www.wvnet.edu/~oma00215
If I want to do business with you, I will contact you. Otherwise, do not
contact me.