Raised This Month: $ Target: $400
 0% 

[Solved] Look trough folder in configs


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
grimvh2
Veteran Member
Join Date: Nov 2007
Location: Fishdot Nation
Old 02-08-2010 , 12:29   [Solved] Look trough folder in configs
Reply With Quote #1

Hello everyone,

How can you get the names of each folder located in for example :
cstrike/addons/amxmodx/configs/myfolder/

Thanks in advance,
Greetings Grim.
__________________
I am out of order!

Last edited by grimvh2; 02-08-2010 at 13:22.
grimvh2 is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 02-08-2010 , 12:45   Re: Look trough folder in configs
Reply With Quote #2

Code:
new szDir[ 64 ] = "cstrike/addons/amxmodx/configs/myfolder"; new szFileName[ 128 ]; new hDir = open_dir( szDir, szFileName, 127 ); if( !hDir ) {     return; } new szPath[ 192 ]; do {     formatex( szPath, 191, "%s/%s", szDir, szFileName );     if( dir_exists( szPath ) )     {         // szPath is a folder     }     else if( file_exists( szPath ) )     {         // szPath is a file     } } while( next_file( hDir, szFileName, 127 ) ); close_dir( hDir );
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
grimvh2
Veteran Member
Join Date: Nov 2007
Location: Fishdot Nation
Old 02-08-2010 , 13:00   Re: Look trough folder in configs
Reply With Quote #3

Thanks Exo (:
__________________
I am out of order!
grimvh2 is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 07:29.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode