AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Delete all files in directory (https://forums.alliedmods.net/showthread.php?t=221496)

lqlqlq 07-22-2013 20:37

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

fysiks 07-22-2013 23:06

Re: Delete all files in directory
 
open_dir() + next_file() + close_dir() + delete_file()

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


All times are GMT -4. The time now is 06:28.

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