Raised This Month: $ Target: $400
 0% 

Delete all files in directory


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
lqlqlq
Senior Member
Join Date: Jan 2008
Old 07-22-2013 , 20:37   Delete all files in directory
Reply With Quote #1

its possible with amxx and how ?
I need delete all files except 3.

Last edited by lqlqlq; 07-22-2013 at 21:32.
lqlqlq is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 07-22-2013 , 23:06   Re: Delete all files in directory
Reply With Quote #2

open_dir() + next_file() + close_dir() + delete_file()

Hint: Not in that order. Check the filename. I use the directory functions in Polymorph.
__________________

Last edited by fysiks; 07-22-2013 at 23:07.
fysiks is offline
Reply


Thread Tools
Display Modes

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 06:28.


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