Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   NSIS Discussion (http://forums.winamp.com/forumdisplay.php?f=65)
-   -   How to load any XML files ? (http://forums.winamp.com/showthread.php?t=254765)

Bertrand_M23 4th September 2006 08:05

How to load any XML files ?
 
Hello,

i'm try to load and XML file.
I use the function : "nsisXML::load /NOUNLOAD "$EXEDIR\Filename.XML"
but i would like to open any XML file created in the exe directory : "*.xml".
From what i've seen, the command "*.xml" doesn't work ...
Please, can anybody tell me how to process ?

Thanks

Bertrand

{_trueparuex^} 4th September 2006 09:39

nsisXML doesn't probably support wildcard file names. But you can do the same thing with nsis by using FindFirst, FindNext and FindClose.

FindFirst $0 $1 "$EXEDIR\*.xml"
StrCmp $1 "" +2
nsisXML::load /NOUNLOAD "$EXEDIR\$1"
...

Bertrand_M23 4th September 2006 10:11

thanks so much
 
I'm going to try it !!
Thanks so much for the reply !!

Bertrand


All times are GMT. The time now is 06:00.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.