@edit on Windows

Yes this does work. Thanks.
It seems to allow spaces in filename, but not forward slashes. So maybe requires realpath:

cmd = `explorer $(realpath(path))`

Another suggestion was made over on GitHub `@edit` on Windows using default editor · Issue #20364 · JuliaLang/julia · GitHub
Indeed the following appears to overcome both the spaces and forward slash issues:

cmd = `cmd /c start /b "" $path`