最新消息:

获取路径最后一个目录名称

nsis 永恒心锁 1571浏览 0评论
XPStyle on
OutFile "Test.EXE"
Name "Test"
Section "Test"
Push "D:Program FilesTencentQQ"
Push ""
Call GetAfterChar
Pop $R0
MessageBox MB_OK $R0
SectionEnd
Function GetAfterChar
 Exch $0
 Exch
 Exch $1
 Push $2
 Push $3
 StrCpy $2 0
 loop:
 IntOp $2 $2 - 1
 StrCpy $3 $1 1 $2
 StrCmp $3 "" 0 +3
 StrCpy $0 ""
 Goto exit2
 StrCmp $3 $0 exit1
 Goto loop
 exit1:
 IntOp $2 $2 + 1
 StrCpy $0 $1 "" $2
 exit2:
 Pop $3
 Pop $2
 Pop $1
 Exch $0
FunctionEnd
永恒心锁,版权所有丨如未注明,均为转载丨本网站采用BY-NC-SA协议进行授权

转载请注明:永恒心锁-分享互联网 » 获取路径最后一个目录名称

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