zoukankan      html  css  js  c++  java
  • bat批处理文件自动判断系统版本信息(转载)


    @echo off
    ver|find "Version 5.0" >nul
    if not errorlevel 1 goto Windows2K
    ver|find "版本 5.0" >nul
    if not errorlevel 1 goto Windows2K
    ver|find "Version 5.1" >nul
    if not errorlevel 1 goto WindowsXP
    ver|find "版本 5.1" >nul
    if not errorlevel 1 goto WindowsXP
    ver|find "Version 5.2" >nul
    if not errorlevel 1 goto Windows2K3
    ver|find "版本 5.2" >nul
    if not errorlevel 1 goto Windows2K3
    ver|find "Version 6.0" >nul
    if not errorlevel 1 goto WindowsVista
    ver|find "版本 6.0" >nul
    if not errorlevel 1 goto WindowsVista
    ver|find "Version 6.1" >nul
    if not errorlevel 1 goto Windows7
    ver|find "版本 6.1" >nul
    if not errorlevel 1 goto Windows7
    (echo Not support this Operating System.)
    goto eof
    :Windows2K
    echo Windows2K
    goto eof
    :Windows2K3
    echo Windows2K3
    goto eof
    :WindowsXP
    echo WindowsXP
    goto eof
    :WindowsVista
    echo WindowsVista
    goto eof
    :Windows7
    if /i "%PROCESSOR_IDENTIFIER:~0,3%"=="X86" (goto X86) else (goto X64)
    :X86
    echo Windows7 X86
    goto eof
    :X64
    echo Windows7 X64
    goto eof
    :eof
    pause
    exit

  • 相关阅读:
    tp.c
    trace
    一致性哈希算法
    update_dctcp_alpha
    dctcp-ns2-patch
    C++ inheritance: public, private. protected ZZ
    C++ virtual inheritance ZZ
    C++ 类对象的初始化顺序 ZZ
    C++ inheritance examples
    classifier.cc-recv() [ns2.35]
  • 原文地址:https://www.cnblogs.com/dongzhiquan/p/3390261.html
Copyright © 2011-2022 走看看