- NSIS Discussion
- Change of case question
Archive: Change of case question
zip_doo_dah
20th July 2004 15:16 UTC
Change of case question
I would like my installer to go to a directory of images and change the names of the files so that all the characters in the file name are lower case. I haven't been able to find a toUpperCase or toLowerCase function. How does one do this?
The new server we are moving to is case sensitive and the present files could be upper case, lower case, or mixed. I need these files to be consistent and so I would like them to be entirely lower case. Thanks in advance.
zimsms
20th July 2004 15:22 UTC
Wow, I did a search in the NSIS archive and guess what appeared, not 1 but 5 examples. Here's the StrLower function.
zip_doo_dah
20th July 2004 15:24 UTC
Sweet! Thank you so much. I tried searching on the words change case lower and upper in a bunch of combinations to no avail. Thanks again.
zimsms
20th July 2004 15:25 UTC
Were you searching the forum or the archive? I did a search in the archive for the word "lower".
Cheers.
Yathosho
20th July 2004 15:49 UTC
a nice feature for archive pages would be keywords, like meta-tags for html
zimsms
20th July 2004 15:52 UTC
What would be a neat feature is a post that resides at the top of the forum that contains an index of links which fully represent the archive names in real time.
deguix
20th July 2004 17:24 UTC
Ahhhnn, remember StrFunc.nsh (inside Include subdir)? That one that has the command ${StrCase} which changes strings into Lower Case, Upper Case, Title Case and Sentence Case?
To do that command I had to start from those functions you saw in Archive. So thanks Archive members for everything.
zimsms
20th July 2004 18:07 UTC
Hmmm, I haven't ever used that deguix. I didn't even know it existed....coool.
deguix
20th July 2004 18:16 UTC
Nor I did about LogicLib.nsh! Sometimes you just don't want to know what possibilities are there.
(Hmmm... donuts. Ahhnhrnrnn....)
zimsms
20th July 2004 18:19 UTC
My buddy Don (DSelkirk) made the logic lib. I did most of the C side of the Service Library, because I had it implemented in another app, then he ported it so it would work in NSIS. Lots of interesting features that are scattered all over.
I want to update my FileInfo plugin to acquire file sizes and attributes, but I haven't gotten around to yet.