Search code examples
emacselispemacs23dot-emacs

how to get windows version from emacs


how to get the detail version information of windows from emacs. i am try to invoke "ver" windows command to get version information, but got failed.

(call-process "ver")

C-x C-e

Debugger entered--Lisp error: (file-error "Searching for program" "no such file or  directory" "ver")
call-process("ver")
eval((call-process "ver"))
eval-last-sexp-1(nil)
eval-last-sexp(nil)
call-interactively(eval-last-sexp nil nil)

Solution

  • (shell-command "ver" t) ;; outputs version in current buffer