title: Sublime Text 2 - Open CMD prompt at current or project directory (Windows)
body: <p>I have found the following Sublime command to be really useful since it opens an explorer window at the location of the current file:</p>
  
  <pre><code>{ "keys": ["ctrl+alt+o"], "command": "open_dir", "args": {"dir": "$file_path", "file": "$file_name"} },
  </code></pre>
  
  <p>What I would love is a similar command that will open a cmd window instead. Ideally at the root project folder, but current file directory would also be fine.</p>
  
  <p>Have read the following question, but can't quite figure out how to use this in a sublime plugin/command:
  <a href="https://stackoverflow.com/questions/4451668/bat-file-to-open-cmd-in-current-directory">BAT file to open CMD in current directory</a></p>