Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   NSIS Discussion (http://forums.winamp.com/forumdisplay.php?f=65)
-   -   How to join two .cfg files in one .cfg (http://forums.winamp.com/showthread.php?t=229728)

M4RC II 30th October 2005 14:16

How to join two .cfg files in one .cfg
 
Hy, I've two .cfg Files (This are files for a config in counter-strike)

Now I would join the file a.cfg with the file b.cfg to a.cfg.

I've tried to join the two files with

File Join but File Join only works with .txt files.

What could I do ?

In .cfg is only text like in a *.txt file.

Sorry when my english isn't very good.
THX

Instructor 30th October 2005 16:08

Extention does not matter for ${FileJoin}. What is your code?

M4RC II 30th October 2005 20:34

1 Attachment(s)
Hy I've make an example for you the exec.cfg must be join with the autoexec.cfg.



Please help me

Instructor 31st October 2005 04:49

Try to debug it, replace line:
code:
${FileJoin} "$INSTDIR\cstrike\autoexec.cfg" "$INSTDIR\Infos\exec.cfg" "$INSTDIR\cstrike\autoexec.cfg"
with
code:
IfFileExists "$INSTDIR\cstrike\autoexec.cfg" +2
MessageBox MB_OK "File not exist: $INSTDIR\cstrike\autoexec.cfg"
IfFileExists "$INSTDIR\Infos\exec.cfg" +2
MessageBox MB_OK "File not exist: $INSTDIR\Infos\exec.cfg"

${FileJoin} "$INSTDIR\cstrike\autoexec.cfg" "$INSTDIR\Infos\exec.cfg" "$INSTDIR\cstrike\autoexec.cfg"

IfErrors 0 +2
MessageBox MB_OK "Error: FileJoin"


M4RC II 2nd November 2005 10:26

hy thx for your help it works now. (-:


All times are GMT. The time now is 05:12.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.