that's finished via employing the residing house windows Script Host. First, create an occasion of the article WScript.Shell. Then, use its Run approach to execute the DOS command. as an occasion, say your HTML web site has a button which will run the DIR command while clicked. The onclick jscript function could seem something like this: ------------------------- function btnDIR_onclick() { var WshShell = new ActiveXObjec("WScript.Shell"); WshShell.Run("%comspec% /c DIR"); WshShell.end; } ---------------------------- The %comspec% string interior the argument for Run() specifies the direction and document call of the command interpreter, Cmd.exe.