Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- !macro _MoveOnlyFiles _sourcepath _filemask _targetpath
- push $R0
- push $R1
- !define Lprefix L${__LINE__}
- FindFirst $R0 $R1 "${_sourcepath}\${_filemask}"
- ${Lprefix}loop:
- StrCmp $R1 "" ${Lprefix}end
- IfFileExists "${_sourcepath}\$R1\*.*" +2
- Rename "${_sourcepath}\$R1" "${_targetpath}\$R1"
- FindNext $R0 $R1
- goto ${Lprefix}loop
- ${Lprefix}end:
- !undef Lprefix
- pop $R1
- pop $R0
- !macroend
- !define MoveOnlyFiles `!insertmacro _MoveOnlyFiles`
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement