API Documentation > CorelDRAW > 2025-v26 > CorelScriptTools > ICorelScriptTools
CorelScriptTools.GetFolder method
Gets Folder
Syntax:
Function GetFolder(Optional ByVal InitFolder As String = "", Optional ByVal Title As String = "", Optional ByVal ParentWindowHandle As Long = 0) As String
Parameters:
Name Type Description
InitFolder
String
Specifies the default path and folder to display in the dialog box. If not specified, the active folder is used.
Title
String
ParentWindowHandle
Long
Remarks:
The GetFolder method displays a Windows Choose Folder dialog box. The Choose Folder dialog box returns the folder and path a user chooses as a string. If the Cancel button is clicked, an empty string is returned.
Examples:
Here is a code example:
NewFolder$ = GetFOLDER("D:\Corel60") SETCURRFOLDER = NewFolder$