ProcessDirectory

ProcessDirectory

is an option specifying the initial working directory to use when executing a process in functions like StartProcess and RunProcess.

Details

  • With the default setting ProcessDirectory->Inherited, the subprocess will inherit its initial directory from the current working directory Directory[] of the Wolfram Engine that calls it.

Examples

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:

Wolfram Research (2014), ProcessDirectory, Wolfram Language function, https://reference.wolfram.com/language/ref/ProcessDirectory.html.

Text

Wolfram Research (2014), ProcessDirectory, Wolfram Language function, https://reference.wolfram.com/language/ref/ProcessDirectory.html.

CMS

Wolfram Language. 2014. "ProcessDirectory." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/ProcessDirectory.html.

APA

Wolfram Language. (2014). ProcessDirectory. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/ProcessDirectory.html

BibTeX

@misc{reference.wolfram_2024_processdirectory, author="Wolfram Research", title="{ProcessDirectory}", year="2014", howpublished="\url{https://reference.wolfram.com/language/ref/ProcessDirectory.html}", note=[Accessed: 22-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_processdirectory, organization={Wolfram Research}, title={ProcessDirectory}, year={2014}, url={https://reference.wolfram.com/language/ref/ProcessDirectory.html}, note=[Accessed: 22-November-2024 ]}