带有 Windows 系统路径变量的文件协议

Luc*_* NN 6 windows path-variables path file-uri system-paths

我想知道是否有任何方法可以将 Windows 系统路径变量与文件协议一起使用。

例子:

file:///%WINDIR%\System32\calc.exe
file:///C:\Users\%USERNAME%\Desktop
Run Code Online (Sandbox Code Playgroud)

上面的例子不起作用,所以我需要类似的东西。

谢谢。

PS:以上示例在 Windows 资源管理器中有效,但在 Chrome 等浏览器中无效。