API Documentation > CorelDRAW > 2025-v26 > CorelScriptTools > ICorelScriptTools
CorelScriptTools.GetScriptFolder method
Gets Script Folder
Syntax:
Function GetScriptFolder() As String
Remarks:
The GetScriptFolder method returns the path and the folder where the executing script resides. If this function is used in a Corel SCRIPT executable, it returns the path and folder where the executable resides. The GetScriptFolder method returns a string variable that is passed the path and folder of an executing script or executable. If the script has not been previously saved to disk or a network, this function returns an empty string.
Examples:
Here is a code example:
folder = GETSCRIPTFOLDER ( )