如何从emacs获取windows的详细版本信息。 我试图调用“ver”windows命令来获取版本信息,但是失败了。
(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)
答案 0 :(得分:4)
(shell-command "ver" t) ;; outputs version in current buffer
答案 1 :(得分:1)
您还可以查询系统配置: C-h v system-configuration RET
文档说明:
在MS-Windows上,该值反映了操作系统的风格和版本 Emacs正在运行。
在我的笔记本电脑上,它显示i386-mingw-nt5.1.2600