set_current_dirset_current_dirSetCurrentDirSetCurrentDir (Operator)

Name

set_current_dirset_current_dirSetCurrentDirSetCurrentDir — Set the current working directory.

Signature

set_current_dir( : : DirName : )

Herror set_current_dir(const char* DirName)

Herror T_set_current_dir(const Htuple DirName)

void SetCurrentDir(const HTuple& DirName)

static void HMisc::SetCurrentDir(const HString& DirName)

static void HMisc::SetCurrentDir(const char* DirName)

static void HMisc::SetCurrentDir(const wchar_t* DirName)   (Windows only)

static void HOperatorSet.SetCurrentDir(HTuple dirName)

static void HMisc.SetCurrentDir(string dirName)

Description

set_current_dirset_current_dirSetCurrentDirSetCurrentDirSetCurrentDir sets the current working directory to the directory DirNameDirNameDirNameDirNamedirName.

Execution Information

Parameters

DirNameDirNameDirNameDirNamedirName (input_control)  filename.dir HTupleHTupleHtuple (string) (string) (HString) (char*)

Name of current working directory to be set.

Result

set_current_dirset_current_dirSetCurrentDirSetCurrentDirSetCurrentDir returns the value 2 (H_MSG_TRUE) if the current working directory could be set. Otherwise, an exception is raised.

Module

Foundation