bazel: Windows: don't shell out to `cmd.exe`

Description of the problem / feature request / question:

cmd.exe doesn’t support UNC paths so we can’t shell out to tools through it and use long paths.

Example where this occurs: WindowsFileSystem.createDirectoryJunction

Related issue: https://github.com/bazelbuild/bazel/issues/2181

Environment info

  • Operating System: Windows 10

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Reactions: 1
  • Comments: 16 (16 by maintainers)

Commits related to this issue

Most upvoted comments

Generally don’t use cmd, because MS announced that they will (finally!!) be deprecating it (over some time): http://www.osnews.com/story/29502/Microsoft_replaces_cmd_with_PowerShell_in_new_Windows_10_build