View Full Version : Creating a batch file
Michel
08-27-2007, 07:07 AM
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
linder
08-27-2007, 07:11 AM
Michel,
Yes, no problem. Just use the "Handle Text File Operations..." script function.
Does this help?
Friedrich
Michel
08-27-2007, 07:22 AM
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?
Michel
08-27-2007, 07:27 AM
And does this function append when calling the same file?
Line = 0 to append, this I found :)
linder
08-27-2007, 07:43 AM
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
Michel
08-27-2007, 07:57 AM
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%
linder
08-27-2007, 08:10 AM
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
Michel
08-27-2007, 08:12 AM
Thank you for the quick reply!
Michel
linder
08-27-2007, 08:21 AM
You are very welcome!
Friedrich
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.