Passage de variable javascript -> vbs
bonjour
je voudrais executer une �anip sur mon reseau 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 13 14 15 16 17 18 19
| <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
DIM ?
mavariable = ?
MsgBox "votre texte" & mavariable |
quelqu'un aurait il une petite id�e ?
Merci � vous tous