Skip to main content

Get-System-Folder-Path

Command Description

Get system folder path

Command Prototype

sRet = Sys.GetSystemPath(sFolderIndex)

Parameter Description

ParameterRequiredTypeDefaultDescription
sFolderIndexTrueenum"system"The folder to get: when "system" is passed, get the path to system folder; when "windows" is passed, get the path to Windows folder; when "desktop" is passed, get the path to the Desktop; when "program" is passed, get the path to the software installation directory; when "temp" is passed, get the path to a temporary directory; when "startmenu", get the path to Start menu folder

return

sRet,The variable used to save the output of the command.

Demo

/********************************Get system folder path************ ******************** 
Command prototype:
sRet = Sys.GetSystemPath ("system")
Input parameters:
sFolderIndex--Which folder to get, the default is "system"
Outgoing parameters:
sRet--the result after the command is run
********************************************************************************/
sRet = Sys.GetSystemPath ("system")
TracePrint (sRet)