Home / FAQs / Installation and Configuration / How Do I Set the Current Working Directory in Dyalog?
You can change the working directory in Dyalog using the ]cd user command:
]cd c:\tmp\
To view the current directory:
]cd
The working directory determines where Dyalog reads and writes files by default.
Why Does the Working Directory Matter?
If Dyalog does not have write permission for the current directory, file operations may fail.
Example:
)save myws Can't save – file could not be created.
Alternative: Specify a Full Path
You can always provide an explicit path:
)save c:\tmp\myws
Setting the Directory at Startup (Windows)
To define the default directory when launching Dyalog:
Programmatic Control
The working directory can also be changed from within Dyalog:
)load files Files.SetCurrentDirectory 'c:\tmp\' Files.GetCurrentDirectory
Vince Chan, Customer Support
Get tips and the latest news. We’ll never spam you. Unsubscribe at any time.
Copyright © 2004 – 2026 Dyalog Ltd.
Technical advice and assistance on all aspects of Dyalog usage is available by e-mail (support@dyalog.com) and/or telephone (+44 1256 830030 – limited to U.K. office hours). Limited advice on design and coding is available, but is not intended to replace the use of the printed and on-line documentation. Except when reporting an issue with the software, users are encouraged to seek advice from the user community via the Dyalog Forum (reading the content of the forums does not require membership).