Is there a way to let setup builder create a batch file? I can create an ini file but I can't seem to create a batch file.
Thanks
Michel
Printable View
Is there a way to let setup builder create a batch file? I can create an ini file but I can't seem to create a batch file.
Thanks
Michel
Michel,
Yes, no problem. Just use the "Handle Text File Operations..." script function.
Does this help?
Friedrich
Well I was looking at this function when I posted. But I need to create a batch file with more then 50 lines. Do I need to call this function 50 times then? or is there a way to create the tekst from the batch file like the ini Contents: ?
And does this function append when calling the same file?
Yes, in this case you have to call the function 50 times.
Do you really have to create the "batch" at runtime? What task does the batch perform?
Friedrich
I don't really need to add 50 lines. I guess I could create and include the batch file first and then replace some lines by runtime.
Example:
set DLC=%Variable%
set PROPATH=%Variable%
set TEMPDIR=%Variable%
set STARTUP_DIR=%Variable%
set PF_FILE=%STARTUP_DIR%\Default.pf
set INI_FILE=%STARTUP_DIR%\Progress.ini
set DB_DIR=%Variable%
set PDBNAME=%Variable%
set SDBNAME=%Variable%
set DBHOST=%Variable%
Michel,
Aha, I see. We'll check if it is possible to add a new text function to one of the next builds that can handle multiple-lines in one call.
Thanks,
Friedrich
Thank you for the quick reply!
Michel
You are very welcome!
Friedrich