Issue Description
The Windows batch script distribution/examples/xml/namespaces/membrane.cmd uses %CD% to set the initial directory, which resolves to the current working directory where the script is executed from, not the directory where the script is located.
This differs from the POSIX script (membrane.sh) which correctly uses the script's own directory. If a user runs this script from a different directory (e.g., C:\other\path> C:\membrane\examples\xml\namespaces\membrane.cmd), the upward traversal will start from C:\other\path instead of the script's location, causing it to fail to locate the Membrane root.
Affected File
distribution/examples/xml/namespaces/membrane.cmd (line 3)
Expected Behavior
The script should use %~dp0 to get the script's own directory, similar to how membrane.sh uses the script's directory.
Related PR
Reported by: @predic8
Issue Description
The Windows batch script
distribution/examples/xml/namespaces/membrane.cmduses%CD%to set the initial directory, which resolves to the current working directory where the script is executed from, not the directory where the script is located.This differs from the POSIX script (
membrane.sh) which correctly uses the script's own directory. If a user runs this script from a different directory (e.g.,C:\other\path> C:\membrane\examples\xml\namespaces\membrane.cmd), the upward traversal will start fromC:\other\pathinstead of the script's location, causing it to fail to locate the Membrane root.Affected File
distribution/examples/xml/namespaces/membrane.cmd(line 3)Expected Behavior
The script should use
%~dp0to get the script's own directory, similar to howmembrane.shuses the script's directory.Related PR
Reported by: @predic8