Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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"]
share|improve this question
up vote 2 down vote accepted

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"]
share|improve this answer
That did the trick. Thanks for the help – wickchuck Nov 1 '12 at 15:15

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.