Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


ID: 15050, How do I get a listing of files in a directory?

by William Walter Email: wlwalter@juno.com


Download Details
FTP  download also available
CDN Login Required to Download. (You will be redirected to the login page if you click on the Download Link)
To download this, you must have registered:
A free membership

For C++Builder, Version 2.0  to 2.0 667 downloads
Copyright: No significant restrictions


Size: 580 bytes
Updated on Mon, 17 Jul 2000 00:00:00 GMT
Originally uploaded on Mon, 17 Jul 2000 00:00:00 GMT
SHA1 Hash: D44D7AC17A0F89B7056443CF2EDB2B90FCFF0AF0
MD5 Hash: ADC8F01E4F76BB736EDB4730B2180DC4

    Explore the files in this upload

Description
In my application I need to present to the operator a list
of all the programs in a folder. I am currently doin it with the following code.

system("dir \\folder > temp")

I then open the 'temp' file created and can get the file names. Using the dos in Windows95, I can get just an 8 character name. Then if I try to use it on Windows NT I find it does not work because of the difference in the NT DOS system.

I can not find a way to do this so my code will be transportable.

If you can give me some help, it would be appreciated.
I am using Borland c++ v3.0. I recently downloaded the v5.5 and purchased Builder 5.0 standard, but I have not learned how to use the Builder as yet.

My Email address is
wlwalter@juno.com

Thank You,

Bill Walter

   Latest Comments  View All Add New

Move mouse over comment to see the full text

Could not retrieve comments. Please try again later.

Server Response from: ETNACDC03