Daniel,
Once a uCalc Transform script has been created, it there a console mode facility to process the conversions? (batch mode)
OT Have you had much luck with the PowerBASIC folks converting to C++ with your tool?
John
Update
uCalc Transform 1.8 Command Prompt
Type T /? for help with uCalc Transform 1.8 Command Prompt options.
F:\uCalcTransform>T /?
Runs uCalc Transform in batch mode (see examples at bottom)
T [/A] [/B] [/P] [/Q] [/S] [/CR | /LF | /CRLF] [/ENCODING:{name|codepage}]
transformfile inputfile [outputfile] [/SEND:data] [#comment]
/A Appends to output file instead of overwriting it.
/B Backs up output file before overwriting it (if it already exists).
/P Previews changes instead of saving them into a file.
/Q Quiet mode; does not ask if you want to overwrite existing output file.
/S Saves stats to a file (whose name can be configured in Setup.cnf).
/CR Saves with carriage return (\r, ASCII 13, hex D) as end-of-line marker.
/LF Saves with line feed (\n, ASCII 10, hex A) as end-of-line marker.
/CRLF Saves with CRLF (\r\n, ASCII 10:13 or hex A:D) as end-of-line marker.
/ENCODING:{name|codepage}
Saves using encoding based on given name (string) or code page (number).
/SEND This sends data to the SEND variable, which can be used by the
current transform. This is useful when you want to use the same
transform but with slight variations for different files.
transformfile Name of file(s) containing transform patterns. To select the
transform patterns currently being edited in a separate GUI
session of uCalc Transform, use @ in place of a file name.
inputfile Name of file(s) containing text to be modified.
outputfile Name of file in which modified text will be saved. If this
file is omitted, modifications are saved in inputfile. If a
directory is given instead of a file, the output goes to a
file in that directory.
# Everything after # at the end is ignored.
Preferred settings can be configured in Setup.cnf. Parameters explicitly
invoked at the command line supersede those configured in Setup.cnf.
Parameters can be placed anywhere before, between, or after file names.
To select multiple files for transformfile & inputfile, you may use wildcards.
When using wildcards for transformfile, it's useful (though it's not required)
to choose a given file name for the OutputFile property within each transform.
If ENCODING is omitted, the output file is saved with UTF-8 encoding without a
byte order mark (BOM). A BOM is always inserted when an encoding is specified.
If inputfile & outputfile are omitted, then uCalc simply opens the file(s) for
editing. To open multiple files in the current directory, use wildcards.
Examples
--------
T Change.uc In.Txt Out.Txt # Modifies In.Txt & saves changes to Out.Txt
T Beautify.uc Program.Bas # Changes saved directly in Program.Bas
T Modify.uc *.c # All files ending with .c are modified
T Modify.uc *.c \Temp # Saves modified *.c files in Temp directory
T Log.uc *.xml Log.Txt /A # Changes to *.xml are appended to Log.Txt
T Web.uc index.html /LF # Saves file using LF (\n) instead of CRLF
T @ \temp\*.vb # *.vb modified based on current transform
T @ *.xml /P # Preview of changes shown; no files modified
T @ Item.xml /ENCODING:utf-8 # Saves with utf-8 encoding (including BOM)
T @ C:\ABC.Txt /ENCODING:1252 # Saves using Windows-1252 encoding
T *.uc test.c # Multiple changes to test.c (if OutputFile="")
T *.uc Interface.Bas # Saves to different files if OutputFile set
T *.uc Source.vb profile.txt /A # Transforms are appended to profile.txt
T ReadMe.Txt # Simply opens up ReadMe.Txt for editing
T *.Txt # Open all .Txt files for editing
T Change.uc File.cpp /SEND:x64 # Variable SEND set to x64 in Change.uc