Topic: Request: System,Save.....Variables Parameters - ini  (Read 59 times)

0 Members and 1 Guest are viewing this topic.

Request: System,Save.....Variables Parameters - ini
« on: January 05, 2018, 10:20:04 AM »

Lancelot

  • Moderator, Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 7756
It will be very useful If we can save variables to an ini file

To demonstrate the idea:

Code: [Select]
[Process]
If,Not,ExistDir,%ProjectTemp%,DirMake,%ProjectTemp%
//-
System,SaveBuilderVariables,%ProjectTemp%\Builder.ini,Builder
System,SavePermanentVariables,%ProjectTemp%\Permanent.ini,Permanent
System,SaveGlobalVariables,%ProjectTemp%\Global.ini,Global
System,SaveFileVariables,%ProjectTemp%\File.ini,Global
System,SaveParameters,%ProjectTemp%\Parameters.ini,Parameters
//-
System,SaveBuilderVariables,%ProjectTemp%\AllVariables.ini,Builder
System,SavePermanentVariables,%ProjectTemp%\AllVariables.ini,Permanent
System,SaveGlobalVariables,%ProjectTemp%\AllVariables.ini,Global
System,SaveFileVariables,%ProjectTemp%\AllVariables.ini,File
System,SaveParameters,%ProjectTemp%\Parameters.ini,Parameters

3rd parameter is section name.
+
Do not overwrite file, create file if not exists.

*
I guess idea is clear, same already exists at Log file.
If required I can demonstrate a result ini.

*
You may notice I prefer "File" instead of "Plugin"
same with Reply 7 http://theoven.org/index.php?topic=2325.msg25461#msg25461
Idea behind: Request: PEBakery Batch : http://theoven.org/index.php?topic=2350.0

***
This will help to debug and other things that will extend flexibility.


:turtle:

Edit:
In addition:
It will be nice to have
System,SaveAllVariablesParameters,%ProjectTemp%\All.ini,All
That saves all active Variables and Parameters to a single section

[All]
%Source_Win%=.....
..
.
.
.
TotalParameters=..
1=
2=
a=
c=
..

-->
In the end variables start with % and parameters start without % (inside ini)
 all active (Active= Exists at the line System,Save... used)
Variables and Parameters can fit same section
« Last Edit: January 05, 2018, 10:50:44 AM by Lancelot »

 

Powered by EzPortal