Bonjour à tous,
je souhaiterais déclencher mon "SecondScript.vbs" tous les premier du mois
Je ne connais pas les paramètres à ajouter. MerciCode:
1
2 Set WSHShell = CreateObject("WScript.Shell") WSHShell.Run "wscript c:\SecondScript.vbs"
Version imprimable
Bonjour à tous,
je souhaiterais déclencher mon "SecondScript.vbs" tous les premier du mois
Je ne connais pas les paramètres à ajouter. MerciCode:
1
2 Set WSHShell = CreateObject("WScript.Shell") WSHShell.Run "wscript c:\SecondScript.vbs"
Salut
Quelque chose comme çà dans ton Script1Code:
1
2
3
4
5
6
7 Dim PremMois PremMois = "01" & Right(Date,8) 'msgbox PremMois If Date = PremMois Then Set WSHShell = CreateObject("WScript.Shell") WSHShell.Run "wscript c:\SecondScript.vbs" End If
Bonjour
Cela implique que le premier script soit lancé, pourquoi ne pas utiliser les tâches planifiés de Windows ?
Philippe