({{, (RefLink[ProcessDirectory, paclet:ref/ProcessDirectory]) 
is an option specifying the initial working directory to use when executing a process in functions like (RefLink[StartProcess, paclet:ref/StartProcess]) and (RefLink[RunProcess, paclet:ref/RunProcess]).}})

OpenersNotesSection(Spacer1)Details

With the default setting (RefLink[ProcessDirectory, paclet:ref/ProcessDirectory])->(RefLink[Inherited, paclet:ref/Inherited]), the subprocess will inherit its initial directory from the current working directory (RefLink[Directory, paclet:ref/Directory])[] of the Wolfram Engine that calls it.

OpenersPrimaryExamplesSection(Spacer1)Examples  (1)

OpenersExampleSection0(Spacer1)Basic Examples  (1)

On Unix systems like Mac OS and Linux, this runs the ls process in the installation directory to list the contents of that directory:

RunProcess["ls",ProcessDirectory->$InstallationDirectory]

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[SetDirectory, paclet:ref/SetDirectory])  ▪  (RefLink[ResetDirectory, paclet:ref/ResetDirectory])  ▪  (RefLink[Directory, paclet:ref/Directory])  ▪  (RefLink[ProcessEnvironment, paclet:ref/ProcessEnvironment])}})}})