2

I am trying to setup a custom build in Sublime Text 2. I am having difficulty getting the backslashes in the UNC path path below.

When I run this command I always end up with only one
backslash no matter if I use. \\ or \\\\\ or \\\\\\


Build File
{
  "shell": "true",
  "windows": {
    "cmd": ["psexec \\\\remotecomputer -s cmd /c c:\\dir"]
  }
}

1 Answer 1

2

Your command is parsed twice. First time when reading json, and second time - somewhere inside SublimeText itself.

Use four backslashes for each one in the resulting path and you'll be ok:

"cmd": ["psexec \\\\\\\\remotecomputer -s cmd /c c:\\\\dir"]
0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .