Jump to content
Sign in to follow this  
SLIpros

How to detect unknown path

Recommended Posts

SLIpros

Hey

Ive got a path D:\games\Call of Duty 4 - Modern Warfare\players\profiles\

In folder profiles there 1 more folder witch name i don't know and in this folder the are ini file

Like this D:\games\Call of Duty 4 - Modern Warfare\players\profiles\...\test.ini

How can i read it?

Thank you

Edited by SLIpros

Share this post


Link to post
Share on other sites
czardas

Hey

Ive got a path D:\games\Call of Duty 4 - Modern Warfare\players\profiles\

In folder profiles there 1 more folder witch name i don't know and in this folder the are ini file

Like this D:\games\Call of Duty 4 - Modern Warfare\players\profiles\...\test.ini

How can i read it?

Thank you

Search the help file for the function _FileListToArray. See if that helps.

Edit: See post number 3 for a better answer.

Edited by czardas

Share this post


Link to post
Share on other sites
omikron48

You can get a list of files and folders in a directory using FileFindFirstFile and FileFindNextFile.

You can determine whether a filename returned by FileFindNextFile is a folder by using FileGetAttrib and StringInStr using attribute value "D".

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.