M4RC II
30th October 2005 15:16 UTC
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 17:08 UTC
Extention does not matter for ${FileJoin}. What is your code?
M4RC II
30th October 2005 21:34 UTC
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 05:49 UTC
Try to debug it, replace line:
${FileJoin} "$INSTDIR\cstrike\autoexec.cfg" "$INSTDIR\Infos\exec.cfg" "$INSTDIR\cstrike\autoexec.cfg"
with
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 11:26 UTC
hy thx for your help it works now. (-: