How do I go about writing a "standalone" console application with a gui switch (since at this time I cannot figure out how to check if GUI is present)? I have found several referencs on processing command line parameters but nothing yet on running "headless". Kevin Does 'if "dev" is in the environment then...' help you? /H