In spite of what I wrote in the comments one can set
cmd as shell in
The only thing to be aware of is that one needs to use
cmdproxy.exe instead of
cmd.exe to get the output to
You can also do this on a per-code-block basis with the following small advice (working with your version
GNU Emacs 220.127.116.11 (x86_64-w64-mingw32)). It defines the new header argument
sh-code blocks. There you set the shell you want to use, e.g.,
(defadvice org-babel-sh-evaluate (around set-shell activate)
"Add header argument :shcmd that determines the shell to be called."
(let* ((org-babel-sh-command (or (cdr (assoc :shcmd params)) org-babel-sh-command)))
After installing this advice you can use it as in the following example:
#+BEGIN_SRC sh :shcmd "cmdproxy.exe"
Datenträger in Laufwerk C: ist CRUZER
Verzeichnis von c:\temp