Welcome to Pauls PureProject
 Home Online Reference Guide duplicated from http://cvs.purebasic.com  
 Online Resources
   · Reference

 Libraries
     2DDrawing
     Billboard
     Camera
     CDAudio
     Cipher
     Clipboard
     Console
     Database
     Date
     Desktop
     Engine3D
     Entity
     File
     FileSystem
     Font
     Gadget
     Help
     Image
     ImagePlugin
     Joystick
     Keyboard
     Library
     Light
     LinkedList
     Material
     Math
     Memory
     Menu
     Mesh
     Misc
     Module
     Mouse
     Movie
     Network
     OnError
     Packer
     Palette
     Particle
     Preference
     Printer
     Requester
     Sort
     Sound
     SoundPlugin
     Sprite
     Sprite3D
     StatusBar
     String
     SysTray
     Terrain
     Texture
     Thread
     Toolbar
     Window

 DeleteDirectory

Syntax

Result = DeleteDirectory(Directory$, Pattern$ [, Mode])
Description
Deletes the specified Directory$. Warning, it's a very dangerous command so use it with care. If the Result is 0, the directory hasn't be fully deleted.

The 'Pattern$' should be a valid OS pattern. For example: "*.*" will delete any files in the directory. "*.exe" will Delet only the .exe files. By default, a null Pattern$ ("") will delete all the files.

'Mode' is optional and can be a combination of the following values:
  #PB_FileSystem_Recursive: Deletes the directory with all subdirectories.
  #PB_FileSystem_Force    : Deletes event the files which are protected (ReadOnly).

Supported OS

Windows, AmigaOS, Linux

<- CreateDirectory() - FileSystem Index - DeleteFile() ->



Hosted by Reel Media Productions Copyright©2001-2004 All Rights Reserved