Archive: Text File Monipulation


Text File Monipulation
I have a simple problem where I need my script to make a copy of a configuration file and give it a new name. I read the docs, and the only way that I can think of doing this is to do it line by line which seems clunky to me. Is there a way that I can simply copy a file and rename it?

Thanks


http://nsis.sourceforge.net/Docs/Chapter4.html#4.9.1.6


Thanks Red Wine. That helps me rename a file but it doesn't allow me to copy it. I am using this to set up "profile" information for users. The file 'profile.std' is the default profile. When a user installs our program, we have them set up a new profile via the installer. So I thought I would make a copy of the default profile and then alter it. Any ideas how to best accomplish this?


Heh, I think I just found it. I feel really dumb about now. Don't know how I missed it the first 10 times I read through the docs.

CopyFiles <source> <dest>