Passage de variable Javascript -> Vbs
Bonjour,
Je voudrais exécuter une manipulation sur mon réseau via un script vbs par un appel d'un script java. Ça marche mais.. je voudrais pouvoir utiliser ma variable 'mavariable'.
Mon script Javascript :
Code:
1 2 3 4 5 6 7 8 9 10 11 12
| <script type="text/javascript">
var mavariable="classe test";
function toto(?)
{
var w = new ActiveXObject("WScript.Shell");
w.run ('cmd /k cscript.exe f:\dial1.vbs ');
}
</script>
<a href="javascript:void(toto());">titi</a> |
et mon script vbs
Code:
1 2 3 4
| DIM ?
mavariable = ?
MsgBox "votre texte" & mavariable |
Quelqu'un aurait-il une petite idée ?
Merci à vous tous.