Old 23rd April 2011, 02:01   #1
Junior Member
Join Date: Feb 2006
Posts: 7
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?
jonwil is offline   Reply With Quote
Old 23rd April 2011, 04:40   #2
Major Dude
Join Date: Oct 2006
Posts: 1,892
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.
MSG is offline   Reply With Quote
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump