Bonjour, je voudrai faire un lien html avec un fonction vbs qui lance un fichier bat:
mais ce ne marche pas sauriez vous m'aider ?
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
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33 <!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> <SCRIPT Language="VBScript"> function MajCadre() { set WshShell = WScript.CreateObject("WScript.Shell") WshShell.Run "Z:\KooKaTix_Interface\Interface\lunnatick_Menu\lunnatick\_ 0 - MS-DOS VBScipt Reg\0 - Batches - ( Outils et scripts batches )\Bloquer le PC pour Maxime.bat" WScript.Sleep 2000 WshShell.SendKeys "{Enter}" } </script> </head> <body> <A href="#" onclick="MajCadre();">Ton lien</A> </body> </html>
Partager