BatchExec
#17
Or I could think of my own format.
Code:
<BatchName>
<Tab> <Command1>
<Tab> <Command2>
<Tab> <Command3>
<OtherBatchName>
<Tab> <Command1>
<Tab> <Command2>

Ini files are used as configuration file, not as as a database. If we'd put everything in a table we could as well create our own file format.

Also, with SQLite it's pretty simple to allow an unlimited amount of commands. Consider this table format:
Code:
Batches
BatchName | BatchID

Commands
Command | BatchID | OrderVal

We'd simply put all the commands in a different table. Then we find all the commands by the BatchID and sort them by their Order. A lower order means it will be executed before the commands with a higher order. Here is an example SQL statement. It might not be valid, I've written it from the back of my head.
Code:
SELECT Commands.Command FROM Batches, Commands WHERE Batches.Name = "BatchName" AND Commands.BatchID = Batches.BatchID ORDER BY OrderVal;
Reply
Thanks given by:


Messages In This Thread
BatchExec - by xoft - 07-01-2015, 05:19 PM
RE: BatchExec - by NiLSPACE - 10-08-2015, 05:27 PM
RE: BatchExec - by xoft - 10-08-2015, 05:52 PM
RE: BatchExec - by NiLSPACE - 10-19-2015, 03:54 AM
RE: BatchExec - by Aberts10 - 10-20-2015, 12:41 PM
RE: BatchExec - by xoft - 10-20-2015, 06:00 PM
RE: BatchExec - by NiLSPACE - 10-20-2015, 06:34 PM
RE: BatchExec - by xoft - 10-21-2015, 01:22 AM
RE: BatchExec - by NiLSPACE - 10-21-2015, 01:32 AM
RE: BatchExec - by xoft - 10-21-2015, 02:58 AM
RE: BatchExec - by NiLSPACE - 10-21-2015, 03:15 AM
RE: BatchExec - by xoft - 10-21-2015, 08:12 AM
RE: BatchExec - by NiLSPACE - 10-21-2015, 04:26 PM
RE: BatchExec - by Zee1234 - 10-22-2015, 04:49 PM
RE: BatchExec - by NiLSPACE - 10-22-2015, 04:55 PM
RE: BatchExec - by Zee1234 - 10-22-2015, 05:44 PM
RE: BatchExec - by NiLSPACE - 10-22-2015, 06:10 PM
RE: BatchExec - by Zee1234 - 10-22-2015, 06:27 PM
RE: BatchExec - by NiLSPACE - 10-22-2015, 06:32 PM
RE: BatchExec - by Zee1234 - 10-22-2015, 06:35 PM



Users browsing this thread: 1 Guest(s)