Re: How would I delete all files from a directory or specific files

new topic     » goto parent     » topic index » view thread      » older message » newer message

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

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu