bonjour ! je veux faire un publipostage par la commande cscript.exe , j'ai utilisé pour cela du javascript sur une page htmlmais la fenêtre se referme automatiquemet !!! et l'exécution s'arrête .
Code : Sélectionner tout - Visualiser dans une fenêtre à part
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>
comment faire !!! merci d'avance
Partager