Every now and then you run into a small discovery that you know you will ever need again in your life. This is where I throw together all of mine. Perhaps they come in handy for you too...

Sunday, October 14, 2007

SoftGrid scripting: hiding the DOS box

So you have created your wonderful SoftGrid script that performs the most advanced features known to man, but there is always that annoying DOS box that keeps on popping up when you use SCRIPTBODY or even when you use a HREF tag to launch the script? (Yeah that's right, also with HREF you can get DOS boxes...).

Here is a workaround to launch an external script to hide the DOS box. The idea is very simple: you use a Visual Basic script that runs the batch file in the background, thus effectively hiding all output!

The VBScript code is a single line and as follows:

CreateObject("Wscript.Shell").Run WScript.Arguments(0), 0, False

Save this file as HideDOS.vbs on your content share, for example in the Tools folder or something. Then call your external script called G:\Doit.bat using the following syntax:

About Me

I work at an IT company called ThingTank, a subsidiary of the Xylos group. We focus primarily on Internet-of-Thing solutions combined with Artificial Intelligence (predictive analytics). My focus as a technology architect is constructing IoT solutions for our customers, with a personal focus on the devices - both the micro electronics and the programming - and the analytics - mostly predictive analytics using R or Python.