SetDirectory

SetDirectory["dir"]

sets the current working directory to dir.

SetDirectory[]

sets the current working directory to your "home" directory.

Details

Examples

open allclose all

Basic Examples  (1)

Set the current working directory:

Setting the directory pushes a directory onto the DirectoryStack:

Resetting the directory:

Scope  (1)

Set the current working directory to the directory specified by the File object:

Wolfram Research (1991), SetDirectory, Wolfram Language function, https://reference.wolfram.com/language/ref/SetDirectory.html (updated 2016).

Text

Wolfram Research (1991), SetDirectory, Wolfram Language function, https://reference.wolfram.com/language/ref/SetDirectory.html (updated 2016).

CMS

Wolfram Language. 1991. "SetDirectory." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2016. https://reference.wolfram.com/language/ref/SetDirectory.html.

APA

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

BibTeX

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

BibLaTeX

@online{reference.wolfram_2024_setdirectory, organization={Wolfram Research}, title={SetDirectory}, year={2016}, url={https://reference.wolfram.com/language/ref/SetDirectory.html}, note=[Accessed: 21-November-2024 ]}