|
|
#1 |
|
Junior Member
Join Date: Jan 2007
Posts: 2
|
Parsing a string of two tokens
I'm new to NSIS, and am having trouble figuring out a function that can do what I'm after. I've tried WordFind and WordReplace with limited success unfortunately, perhaps I'm just not using them correctly.
Basically I've got an installer that loops through a text file. On each line of this text file is a filename and a size, separated by a space. For example: file1.txt 100 this is file2.txt 140 I need to read and support filenames with spaces as well, and was wondering how I can basically stuff $1 with the filename, and $2 with the file size reliably. Thanks for the help. ~G~ |
|
|
|
|
|
#2 |
|
Forum King
Join Date: Mar 2006
Location: Ath. GR
Posts: 2,078
|
There are some useful functions at wiki, most likely you'd find one ready for you, or modify one to suit your needs.
http://nsis.sourceforge.net/Category...ons_%26_Macros Quick AVI Creator - Quick and easy convert from DVD/MPEG/AVI/MKV to AVI/MP4/MKV Quick AVI Creator entirely edited with NSIS and entirely upgraded to Unicode NSIS |
|
|
|
|
|
#3 |
|
Moderator
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
|
|
|
|
|
|
|
#4 |
|
Junior Member
Join Date: Jan 2007
Posts: 2
|
Afrow, that was it!
Cheers |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|