Advertisement
Guest User

Untitled

a guest
Jun 18th, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. !macro _MoveOnlyFiles _sourcepath _filemask _targetpath
  2.   push $R0
  3.   push $R1
  4.   !define Lprefix L${__LINE__}
  5.   FindFirst $R0 $R1 "${_sourcepath}\${_filemask}"
  6.   ${Lprefix}loop:
  7.     StrCmp $R1 "" ${Lprefix}end
  8.     IfFileExists "${_sourcepath}\$R1\*.*" +2
  9.     Rename "${_sourcepath}\$R1" "${_targetpath}\$R1"
  10.     FindNext $R0 $R1
  11.     goto ${Lprefix}loop
  12.   ${Lprefix}end:
  13.   !undef Lprefix
  14.   pop $R1
  15.   pop $R0
  16. !macroend
  17. !define MoveOnlyFiles `!insertmacro _MoveOnlyFiles`
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement