You are still BATCH scripting. If you want to discuss this, I would think this belongs to General Discussions. therob gave you an example how to do this in KiX.