XLL+ Class Library (6.3)

CXlMacros::Directory

Sets the current drive and directory or folder to the specified path and returns the name of the new directory or folder as text

static int Directory(
   CString strnewdirectory,
   LPCTSTR path_text = 0
);

Parameters

strnewdirectory

A reference to a string that will contain the desired information if the function succeeds.

path_text

Path_text is the drive and directory or folder you want to change to. An empty or null string is treated as a missing argument.

Return Value

Zero if the function has been called successfully; non-zero if the function could not be called. See Error codes for a list of return values.

Remarks

See the Microsoft Excel on-line Help for full details about this function.

Requirements

Header: xlfuncs.h

See Also

CXlMacros Class | CXlMacros Methods