SpecialFolders Object

Description

Looks up the most commonly required folders on the computer.

The folder names should be returned without a trailing slash, eg "C:\temp".

Methods

LookupValue

System

Windows

Temp

ProgramFiles

CommonFiles

UserDocuments

UserHome

UserDesktop

Example

Set sp = CreateObject("Toolsack.SpecialFolders")
 
MsgBox "The users desktop is located at : " & sp.UserDesktop
MsgBox "The windows dir is located at : " & sp.Windows
MsgBox "The temp dir is : " & sp.Temp
 

Samples

Articles



We always want to hear your feedback. Send to feedback@toolsack.com.
© 2000-2001 Toolsack Software Ltd.