zoukankan      html  css  js  c++  java
  • DOS windows 使用bat脚本获取 IP MAC 系统信息


    @echo select disk 0 >dpjs.txt

    @echo detail disk >>dpjs.txt

    diskpart /s dpjs.txt
    @echo ------------------fidisk---------------- >>info.txt
    diskpart /s dpjs.txt|findstr "ID:" >info.txt
    ::diskpart /s dpjs.txt>info.txt
    @echo ------------------------------------------------ >>info.txt

    ::ipconfig /all >>info.txt
    @echo ----------------------IP MAC---------------- >>info.txt
    ::ipconfig /all |findstr "IPv4" >>info.txt
    ::ipconfig /all |findstr /i "物理地址" >>info.txt
    ipconfig /all >>info.txt

    @echo ---------------------init-date--------------- >>info.txt
    systeminfo >> info.txt
    ::systeminfo | findstr /i "初始安装日期:" >> info.txt
    del /q dpjs.txt

    没能找到 如何过滤中文,并且输出有大佬麻烦指导下谢谢了

  • 相关阅读:
    Largest Rectangle in Histogram
    Valid Sudoku
    Set Matrix Zeroes
    Unique Paths
    Binary Tree Level Order Traversal II
    Binary Tree Level Order Traversal
    Path Sum II
    Path Sum
    Validate Binary Search Tree
    新手程序员 e
  • 原文地址:https://www.cnblogs.com/mjiu/p/10760684.html
Copyright © 2011-2022 走看看