Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

Saxon.SetCurrentWorkingDirectory

Sets current working directory.

Component Version macOS Windows Linux Server iOS SDK
Saxon 15.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ❌ No
MBS( "Saxon.SetCurrentWorkingDirectory"; Value )   More

Parameters

Parameter Description Example
Value The new current working directory path. "/Users/cs/Saxon"

Result

Returns OK or error.

Description

Sets current working directory.
This setting is stored per thread, so multiple server scripts running in parallel can use different settings.

Paths with space characters do not work on Windows in our testing.

Examples

Set the current working directory:

Set Variable [ $r ; Value: MBS( "Saxon.SetCurrentWorkingDirectory"; "C:\ZUGFeRD" ) ]

See also

Example Databases

Blog Entries

This function is free to use.

Created 31st December 2024, last changed 24th February 2025


Saxon.SetBaseURI - Saxon.SetLanguageVersion