Platform Core .NET Assemblies API
SetCurrentDirectory Method
See Also  Send Feedback
Terrasoft.IO Namespace > IDirectory Interface : SetCurrentDirectory Method
path
The path to which the current working directory is set.

Glossary Item Box

Sets the application's current working directory to the specified directory.

Syntax

 
C#
 
 

Parameters

path
The path to which the current working directory is set.

Exceptions

ExceptionDescription
System.IO.IOExceptionAn I/O error occurred.
System.ArgumentExceptionpath is a zero-length string, contains only white space, or contains one or more invalid characters.
System.ArgumentNullExceptionpath is null.
System.Security.SecurityExceptionThe caller does not have the required permission to access unmanaged code.
System.IO.FileNotFoundExceptionThe specified path was not found.
System.IO.DirectoryNotFoundExceptionThe specified directory was not found.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

© Terrasoft 2002-2018.