Solved

FTP Program (problem with LIST command)

Posted on 2002-03-15
3
131 Views
Last Modified: 2010-05-18
I'm making a FTP client program but I have a little doubt. To show the list of files in a directory, I use the LIST command. But the result changes between OSs for example:

--------
UNIX----
--------
drwxr-xr-x   3 root     wheel         512 Mar  8  2001 boot
drwxr-xr-x   3 root     wheel         512 Nov 26 09:41 compat

--------
NT------
--------
05-30-01  11:31AM               598016 data.mdb
03-14-02  05:24PM       <DIR>          databases
12-18-00  11:21PM       <DIR>          errdocs
03-14-02  01:41PM       <DIR>          htdocs
01-10-01  03:44AM       <DIR>          logs

What are the rules or what should I follow to filter this results, and put them in a Grid or List. Is there any special position for each field, or what?

Also in the UNIX result, at the date field, in the first line I get "Mar  8  2001" (M,D,Y) but in the other one "Nov 26 09:41" (M,D,TIME), what are they diferent?
0
Comment
Question by:macob
3 Comments
 
LVL 69

Accepted Solution

by:
Éric Moreau earned 100 total points
Comment Utility
see if this sample can help you: http://www.freevbcode.com/ShowCode.Asp?ID=1593
0
 
LVL 49

Expert Comment

by:DanRollins
Comment Utility
Hi macob,
It appears that you have forgotten this question. I will ask Community Support to close it unless you finalize it within 7 days. I will ask a Community Support Moderator to:

    Accept emoreau's comment(s) as an answer.

macob, if you think your question was not answered at all or if you need help, just post a new comment here; Community Support will help you.  DO NOT accept this comment as an answer.
==========
DanRollins -- EE database cleanup volunteer
0
 
LVL 1

Expert Comment

by:kodiakbear
Comment Utility
Moving to the paq

kb
Experts Exchange Moderator
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now