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.