luozengbin
luozengbin

Reputation: 303

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)

Upvotes: 1

Views: 215

Answers (2)

Seki
Seki

Reputation: 11465

You can also query system-configuration : C-h v system-configuration RET

The documentation states:

On MS-Windows, the value reflects the OS flavor and version on which Emacs is running.

On my laptop, it says i386-mingw-nt5.1.2600

Upvotes: 1

carrutherji
carrutherji

Reputation: 1135

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

Upvotes: 4

Related Questions