exécuter la commande dos cscript.exe via un javascript
bonjour ! je veux faire un publipostage par la commande cscript.exe , j'ai utilisé pour cela du javascript sur une page html
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" " http://www.w3.org/TR/html4/loose.dtd ">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Document sans nom</title>
</head>
<body>
<script type="text/javascript">
function toto()
{
var w = new ActiveXObject("WScript.Shell");
w.run ('cmd /c cscript.exe c:\fusion.vbs c:\pub.doc c:\pub.txt');
}
</script>
<a href="javascript:void(toto());">titi</a>
</body>
</html> |
mais la fenêtre se referme automatiquemet !!! et l'exécution s'arrête .
comment faire !!! merci d'avance :help: :help: