Crestron simpl plus language ref 사용자 설명서

다운로드
페이지 374
Software Crestron 
SIMPL+
®
182 
z SIMPL+
®
Language Reference Guide - DOC. 5797G
SetCurrentDirectory
Name:
SetCurrentDirectory
Syntax:
SIGNED_INTEGER SetCurrentDirectory(STRING DirName) 
Description:
Changes the working directory to the specified name. Refer to “Relative Path Names” 
on 
Parameters:
DIRNAME – string containing the name of the desired directory.
Return Value:
Returns 0 if successful and –1 if an error occurred.
Example: 
(Refer to "File Functions Overview"on page 
)
IF( SetCurrentDirectory(“NewDirect”) < 0)
PRINT(“Error occurred creating directory\n”);
PRINT(“Directory is now: %s\n”, GetCurrentDirectory());
Version:
SIMPL+ Version 3.00.02 or higher (Pro 2 only)
Control System:
2-Series Only