CleanUp

Introduction

Developers who often upload scripts to a WinBuilder download server, usually have one problem:
By some tests, the scripts often do not have the 'factory settings'. They contain e.g. the source CD path of the local system.

Usually the developer gets knowledge about these small bugs after upload.
Then he has to correct, make a new upload, etc. ...

This tool helps to change the scripts to 'factory settings' before upload.


Functionality

Syntax: CleanUp <script path> [/D[V]]
BTW: CleanUp -webhelp opens this page.

<script path> may contain wild cards, e.g.
CleanUp C:\WinBuilder\Projects\nativeEx_barebone\*.script

CleanUp scans the script for the section [UploadClean]. If the section exists, the changes are made due to the contents of the [UploadClean] section.

The optional -D switch sets the actual date into [Main] Date in all files matching the wild card pattern, even if the file does not contain an
[UploadClean] section.
The -DV switch additionally increases the version.
Non-integer version extentions are lost: E.g. 52f or 52.7 are increased to 53

Warning:

CleanUp changes / deletes script contents finally! When you made a mistake in the [UploadClean] section, something may be lost for ever!
So you are responsible to make a backup before using CleanUp!

[UploadClean] section entries

  • SectionDeletes=<section>[,<section>[,<section>...]]
    Deletes all named sections in the script.

  • VariablesCut=<last preserved variable>
    Deletes all [Variables]  behind
    <last preserved variable>.

  • SetDate=@ | <string>
    Sets actual date or <string> into [Main]:Date.

  • InterfaceClean
    • InterfaceClean=<component>[,<component>[,<component>...]]
    • InterfaceClean=@<List>
      with
      [<List>]
      <interface>=
      <component>[,<component>[,<component>...]]
      <interface>=<component>[,<component>[,<component>...]]
      ...
    Empties scroll box <component>

  • SetInterface=@List
    • with [<List>]
      <interface>=
      <component>,<value>
      <interface>=<component>,<value>
      ...

    Changes values of TextBox, NumberBox, CheckBox, RadioButton, ComboBox, FileBox, CheckList.

  • KeyDeletes
    • KeyDeletes=<section>,<key>[,<key>[,<key>...]]
    • KeyDeletes=@<List>
      with
      [<List>]
      <section>=
      <key>[,<key>[,<key>...]]
      <section>=<key>[,<key>[,<key>...]]
      ...
    Deletes <key> from <section>

  • KeyResets
    • KeyResets=<section>,<key>[,<key>[,<key>...]]
    • KeyResets=@<List>
      with
      [<List>]
      <section>=
      <key>[,<key>[,<key>...]]
      <section>=<key>[,<key>[,<key>...]]
      ...
Resets <section>:<key> to empty value
     
  • Selected
    • Selected={True | False}
Selects / deselect the script in [Main]:Selected
  • DeleteAttachments
    • DeleteAttachments=<folder>[,<folder>[,<folder>...]]

    Deletes the attached folders

<interface> is standard 'Interface' or one of the user defined alternative interface sections.

Examples

script.project:
[UploadClean]
KeyDeletes=Main,AttachDir,WBVersion,SourceDir
VariablesCut=%APISUBDEF%
SetDate=@


PEFactory.script:
[UploadClean]
SectionDeletes=Variables,Finish,PEF_Variables
InterfaceClean=@_CInterface
SetDate=@

[_CInterface]
Interface=CB_UPX,CB_PE,CB_Emulator,CB_Burn,CB_Compress,CB_Compact,CB_Image,CB_MultiBoot


Filemon.script:
[UploadClean]
SectionDeletes=EncodedFile-Folder-Filemon.exe
KeyDeletes=Folder,Filemon.exe



Download

Actual version: '1.4.1'

nativeex.exec-se.de/Download/Tools/CleanUp.zip


Peter Schlang alias 'pscEx'