最新消息:

获取CMD命令行的返回值

nsis 永恒心锁 1145浏览 0评论
Name "CMD2LOG"
Caption "$(^Name)"
OutFile "CMD2LOG.exe"
RequestExecutionLevel admin
XPStyle on
!include "MUI2.nsh"
!insertmacro MUI_PAGE_INSTFILES
!insertmacro MUI_LANGUAGE "SimpChinese"
ShowInstDetails Show
BrandingText "www.yhxs3344.net"

Section
 ExecDos::exec 'cmd /c wmic csproduct list full |find "UUID"' "" "$EXEDIR\UUID.txt"

 ClearErrors
 FileOpen $0 $EXEDIR\UUID.txt r
 IfErrors done
 FileRead $0 $1
 FileClose $0

 MessageBox MB_OK "$1"
 done:
SectionEnd
永恒心锁,版权所有丨如未注明,均为转载丨本网站采用BY-NC-SA协议进行授权

转载请注明:永恒心锁-分享互联网 » 获取CMD命令行的返回值

您必须 登录 才能发表评论!