System.IOUtils.TDirectory.SetCurrentDirectory

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

class procedure SetCurrentDirectory(const Path: string); static;

C++

static void __fastcall SetCurrentDirectory(const System::UnicodeString Path);

Properties

Type Visibility Source Unit Parent
procedure
function
public
System.IOUtils.pas
System.IOUtils.hpp
System.IOUtils TDirectory

Description

Sets the current directory.

Use SetCurrentDirectory to set the current working directory. The following table lists the parameters expected by this method.



Name Meaning

Path

Path of the directory that will be set as current.



Note: SetCurrentDirectory raises an exception if the given path is either invalid or cannot be set as current.

See Also