[program-l] Re: Retrieving a list of files with a particular extension.

  • From: "Mark Long" <marklon@xxxxxxxxxxxxx>
  • To: <program-l@xxxxxxxxxxxxx>
  • Date: Fri, 12 Aug 2005 11:03:13 +0100

Check FindFirstFile on MSDN

-----Original Message-----
From: program-l-bounce@xxxxxxxxxxxxx
[mailto:program-l-bounce@xxxxxxxxxxxxx] On Behalf Of Nick Adamson
Sent: 12 August 2005 09:43
To: 'program-l@xxxxxxxxxxxxx'
Subject: [program-l] Retrieving a list of files with a particular
extension.

Hi All.

I'm writing a small program in c++ to look in a folder and get a list of
files in that folder with a ".SLG" extension.

I'm writing the function that searches for the files in the folder at
the
moment and have no idea how to get the file list from the folder. I
guess
there's a way using the file handle of the folder, Any ideas?

Cheers.
Nick.



Nick Adamson
Software Engineer
General Dynamics UK LTD

Email: nick.adamson@xxxxxxxxxxxxxxxxxxxxxx
Tel: 01495 236467
http://www.generaldynamics.uk.com

This email and any files attached to it are of a confidential nature and
intended for the exclusive use of the individual or entity to whom they
are
addressed. If you are not the intended recipient, please be advised that
you
have received this email in error and action should be taken to inform
the
originator and this email should be deleted immediately and any copies
made
should be destroyed. If you are not the intended recipient, any form of
disclosure, distribution, printing, copying or any other use of this
email
or the information in it or in any attachments is strictly prohibited
and
may be unlawful. Any views, opinions or other information expressed in
the
email and any attachments are those of the originator and not given or
endorsed by General Dynamics UK Ltd.In compliance with the various
Regulations and Acts, please be aware that General Dynamics UK Ltd
reserves
the right to monitor all emails and email attachments, both inbound and
outbound, allowing legitimate business practice to continue.In addition
to
monitoring, General Dynamics UK Ltd also provides appropriate Antivirus
measures scanning all incoming and outgoing email and email attachments.
However, email communications cannot be guaranteed to be secure or free
of
errors as information may be intercepted, corrupted, amended, lost,
destroyed or contain viruses. General Dynamics UK Ltd do not accept
liability or responsibility for any such matters or the consequences
thereof.
** To leave the list, click on the immediately-following link:-
** [mailto:program-l-request@xxxxxxxxxxxxx?subject=unsubscribe]
** If this link doesn't work then send a message to:
** program-l-request@xxxxxxxxxxxxx
** and in the Subject line type
** unsubscribe
** For other list commands such as vacation mode, click on the
** immediately-following link:-
** [mailto:program-l-request@xxxxxxxxxxxxx?subject=faq]
** or send a message, to
** program-l-request@xxxxxxxxxxxxx with the Subject:- faq
** To leave the list, click on the immediately-following link:-
** [mailto:program-l-request@xxxxxxxxxxxxx?subject=unsubscribe]
** If this link doesn't work then send a message to:
** program-l-request@xxxxxxxxxxxxx
** and in the Subject line type
** unsubscribe
** For other list commands such as vacation mode, click on the
** immediately-following link:-
** [mailto:program-l-request@xxxxxxxxxxxxx?subject=faq]
** or send a message, to
** program-l-request@xxxxxxxxxxxxx with the Subject:- faq

Other related posts: