Ultra browser script generator

This tool hardly needs an introduction; I'm talking about Siebel's "Genbscript.exe", which is a simple command line tool that allows us to generate browser scripts for our application. This is an indespensible tool for every developer and environment specialist.

A generic implementation is shown below

genbscript.exe <your config file> <browser script output directory> <language>

The problem with the above method is if there is an existing directory, genbscript.exe will not run, unless you first delete the existing directory.

When this happens you have to goto the browser script folder..



Find the duplicate folder among all the previous versions of the browser script directory, and delete it, which is more frustrating than it sounds.

Genbscript.exe is a black box command line utility, which has no visible hooks, but never to be one, to settle for standard features, i created some automation that got around the limitations of this tool.

I really had to stretch my batch scripting muscles to its limits for this exercise.

The result is "Ultra GenB", which is an enhanced batch program that will detect wether you've got a previous version of the browser script folder, deletes the folder in question, and, regenerates your browser scripts, all with 1 click.

There are only 3 parameters that you need to set.


::##############################################################################
::CONFIG
::##############################################################################
SET BSCRIPT_EXE=<Siebel folder>\Client\BIN\genbscript.exe
SET CFG_FILE=<Config file>.cfg
SET OUTPUT_DIR=<Siebel folder>\Client\PUBLIC\enu


I spent a whole day, just generating browser scripts over and over, so i guarantee your inner geek will have endless hours of fun with this tool.





The tool is free and is provided without any warranty, and can be downloaded from my LinkedIn Group: Impossible Siebel

Does anyone want to see a progress screen that actually shows you the working progress, and not just a blinking cursor?


Reactions:

0 comments:

Post a Comment

Comments are open to all, please make it constructive.