Re: Deleting folders with files

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

ZNorQ wrote:
> 
> Heya,
> 
> How can I delete a folder containing files?

Because you used the word 'folder' I assume you are using Windows and not Linux.

The command to use in Win2000, XP, and Vista is ...

   rmdir /S /Q dirname

e.g.
   rmdir /S /Q c:\temp\workarea

To use this from within a Euphoria program you need to use the system
statement...

e.g.

   system ("rmdir /S /Q c:\\temp\\workarea", 2)

The '2' is in the second parameter so it doesn't clear the screen or change the
graphics mode on the console.


In the *nix world, the command is ...

  rm -rf dirname

e.g.
   system ("rm -rf /temp/workarea", 2)

-- 
Derek Parnell
Melbourne, Australia
Skype name: derek.j.parnell

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

Search



Quick Links

User menu

Not signed in.

Misc Menu