@TrooperMan Thanks TrooperMan, that worked well. though you see a CMD window popup for a second before execution begins -- i'm also able to pass switches to the executable (exe's in the path can be included) eg popen("explorer.exe /e", "r"); also problems with the close: command... it causes about:blank DNS error .... i managed to get around it with a call to popen("taskkill /IM autorun.exe", "r"); but the link code below only shuts the browser and causes OS errors <input type="button" value="Close Window" onclick="window.close()"> dave