Partager via


ProcessBuilder.Directory Method

Definition

Overloads

Directory()

Returns this process builder's working directory.

Directory(File)

Sets this process builder's working directory.

Directory()

Returns this process builder's working directory.

[Android.Runtime.Register("directory", "()Ljava/io/File;", "")]
public Java.IO.File? Directory ();
[<Android.Runtime.Register("directory", "()Ljava/io/File;", "")>]
member this.Directory : unit -> Java.IO.File

Returns

this process builder's working directory

Attributes

Remarks

Returns this process builder's working directory.

Subprocesses subsequently started by this object's #start() method will use this as their working directory. The returned value may be null -- this means to use the working directory of the current Java process, usually the directory named by the system property user.dir, as the working directory of the child process.

Java documentation for java.lang.ProcessBuilder.directory().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

Directory(File)

Sets this process builder's working directory.

[Android.Runtime.Register("directory", "(Ljava/io/File;)Ljava/lang/ProcessBuilder;", "")]
public Java.Lang.ProcessBuilder? Directory (Java.IO.File? directory);
[<Android.Runtime.Register("directory", "(Ljava/io/File;)Ljava/lang/ProcessBuilder;", "")>]
member this.Directory : Java.IO.File -> Java.Lang.ProcessBuilder

Parameters

directory
File

the new working directory

Returns

this process builder

Attributes

Remarks

Sets this process builder's working directory.

Subprocesses subsequently started by this object's #start() method will use this as their working directory. The argument may be null -- this means to use the working directory of the current Java process, usually the directory named by the system property user.dir, as the working directory of the child process.

Java documentation for java.lang.ProcessBuilder.directory(java.io.File).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to