function btnDIR_onclick() { var WshShell = new ActiveXObject("WScript.Shell"); WshShell.Run("%comspec% /c DIR"); WshShell.Quit; }