Re: How would I delete all files from a directory or specific files
- Posted by Humberto <codehead78 at YAHOO.COM> Mar 04, 2001
- 362 views
Use system("del *",2) for DOS32 WIN32 and system("rm *",2) for Linux "del *" would mean all files "del *.doc" would mean all files ending in .doc Be careful, make sure you're in the right directory.. You could wipe out you're source code. You might also want to look at current_dir() and dir() in the Library.doc file. -Humberto --- tuncaydin6 at tuncaydin6.screaming.net wrote: > Hi! > > I would like to delete all files in a specific > directory. Could someone tell me how I would do > this, or how I could search for a specific file then > delete it? > > Thanks > > Martin