Setcurrentdirectory - Crestron SIMPL+ Reference Manual

Language reference guide
Hide thumbs Also See for SIMPL+:
Table of Contents

Advertisement

Software
®
182
SIMPL+

SetCurrentDirectory

Name:
SetCurrentDirectory
Syntax:
SIGNED_INTEGER SetCurrentDirectory(STRING DirName)
Description:
Changes the working directory to the specified name. Refer to "Relative Path Names"
on
page
14.
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 116)
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
Crestron SIMPL+
Language Reference Guide - DOC. 5797G
®

Advertisement

Table of Contents
loading

Table of Contents