Bonjour,
je cherche à garder dans le fichier vbs les arguments tapé avant,
je m'explique quand je tape sur l'invité de commande :
test.vbs toto service_info (je voudrais qui modifie le script)
si je tape la commande test.vbs ( je voudrais qu'il m'execute le script)
voici mon code:
merci
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 On Error Resume Next Dim arguments , nombre Set arguments = wscript.arguments nombre = arguments.count if nombre > 0 then user = arguments(0) wscript.echo user wscript.echo ou ou = arguments(1) end if if nombre =0 then wscript.echo " l'utilisateur " & user & "fait parti de l'OU" & ou end if
sam874
Partager