最新消息:

GetFirstRemovable是NSIS获取可移动磁盘和U盘盘符的插件

nsis 永恒心锁 1673浏览 0评论
/*
GetFirstRemovable是NSIS获取可移动磁盘和U盘盘符的插件
GetFirstRemovable有两个接口GetFirst和GetAll分别用于,获取第一个移动设备盘符,和所有可移动设置盘符.
*/
!AddPluginDir "../Plugins"
OutFile "GetFirstRemovable.exe"
SetCompressor /SOLID lzma
XPStyle on
Page instfiles
Section ""
 SetAutoClose true
 ; Get the first removable drive:
 GetFirstRemovable::GetFirst
 Pop $R1
 ; And show it...
 MessageBox MB_OK "First removable drive: $R1"
 ; Get all removable drives:
 GetFirstRemovable::GetAll
 Pop $R2
 ; And show them...
 MessageBox MB_OK "All removable drives: $R2"
SectionEnd
永恒心锁,版权所有丨如未注明,均为转载丨本网站采用BY-NC-SA协议进行授权

转载请注明:永恒心锁-分享互联网 » GetFirstRemovable是NSIS获取可移动磁盘和U盘盘符的插件

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