Storages & Files CreateDirectory
CreateDirectory method

Creates directory in the machine's file system.


Set stg = object.CreateDirectory(path [, SF_Flags])
object.CreateDirectory path, SF_Flags


path - String. Contains the path for the directory to be created.
SF_Flags - Standard SF Flags (optional)

Returns: a SFStorage object for the created directory.


Dim main, dir
Set main = CreateObject("newObjects.utilctls.SFMain")
Set dir = main.CreateDirectory("C:\myNewDir")


This method is for the file system only. To create "virtual storage" in an already existing storage use its CreateStorage method.

Applies to: SFMain object

See also: Standard SF Flags, SFStorage, CreateStorage

Supported on:

Windows 95/NT and later
Windows CE 3.0 and later
Pocket PC/Windows Mobile 2003 and later
Windows CE.NET 4 and later


newObjects Copyright 2001-2006 newObjects [ ]