Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Getting system directory???
Message
 
 
To
18/10/2000 15:11:52
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00431092
Message ID:
00431119
Views:
14
>CAn anyone show me a sample to code to get the system directory??
>
>Thanks godzillion :)

oReg=createobject('Scripting.FileSystemObject')
? oReg.GetSpecialFolder(1)
==========================================================
GetSpecialFolder Method
See Also Example Applies To Specifics

Description

Returns the special folder specified.

Syntax

object.GetSpecialFolder(folderspec)

The GetSpecialFolder method syntax has these parts:

Part Description
object Required. Always the name of a FileSystemObject.
folderspec Required. The name of the special folder to be returned. Can be any of the constants shown in the Settings section.


Settings

The folderspec argument can have any of the following values:

Constant Value Description
WindowsFolder 0 The Windows folder contains files installed by the Windows operating system.
SystemFolder 1 The System folder contains libraries, fonts, and device drivers.
TemporaryFolder 2 The Temp folder is used to store temporary files. Its path is found in the TMP environment variable.
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform