Skip to content
⌘ NSIS Forum Archive

NSI Scripts

5 posts

titanium0203#

NSI Scripts

Hi,

Need some help here.
I have a folder named c:\data and inside this folder I got 4 executable files.
How can I use NSI script to rename all files inside c:\data to format as below :
c:\data\pumpData.exe<date>
c:\data\pumpExt.exe<date>
c:\data\pumpRaw.exe<date>
c:\data\pumpImages.exe<date>

<date> is todays date.

Then after above process have been completed, how can I copy new files to c:\data\
from zip files. I only know how to copy files to c:\data but don't have ideas on how to
automatically rename files inside c:\data.

Regards,
titanium0203😉
MSG#
It's all in the manual:



As for unpacking zip files, there are several unzip plugins.
titanium0203#
Hi MSG,

Another things, I've try link http://nsis.sourceforge.net/Uninstal...pied_Shortcuts but unable to compile it correctly.

I've copied dll files to the respective directory and same goes to nsh file.

please help. Thanks
MSG#
...what do moved shortcuts have to do with renaming some files? Just use what I gave you: The rename command.

All the information you need is in those two links. The Rename command is self-explanatory. The GetTime macro allows you to get the current date, and can be understood by looking at the examples supplied there.