CMD does not support UNC paths as current directories

后端 未结 2 1941
生来不讨喜
生来不讨喜 2020-12-03 19:33

We have batch scripts that seem to run fine however I am editing one of them to include some new work and when manually running the script (by double-clicking from windows e

2条回答
  •  死守一世寂寞
    2020-12-03 19:58

    I have some advice - consider rewriting your script in PowerShell. PowerShell allows the current working directory to be on a network. PowerShell as a whole is more versatile and powerful than CMD is. It's also cross-platform. Consider switching.

提交回复
热议问题