Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

1 Answer 1

up vote 0 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

 
discard

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.