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 : 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
<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