Archive: How to move/rename files based on wildcard


How to move/rename files based on wildcard
Basically what I want is a way to say "move *.w3d from $INSTDIR\data to $INSTDIR\backup"
How can I do that in NSIS?


You may use FindFirst / FindNext in a small loop, and call Rename on each hit. You might want to make sure that the hit is not a directory: ${IfNot} ${FileExists} $hit\*.* Rename etc.