Dear All
Can somebody tell me how I do the follwoing:
I want some code which will see whether an application is open, if it is, it lauches the appliaction, if the application isnn't open the codeopens the application
I'd prefer itto be is javascript, but vbscript will be OK
I know how to open the application, what I don't know is how to see whether it is already open
I've started with this code which opens notepad
var oShell = new ActiveXObject("Shell.Application");
var commandToRun = "C:\\Winnt\\Notepad.exe";
oShell.ShellExecute(commandToRun, "","", "open", "1");
but i want an if else statement to see whther it's already opened, then to just lauch the application
thanks for all yor help