Bonjour ,
jai crée une application vb.net dans la quelle je veux lancer un scripte vbs lorsque je load ma forme
j'ai insérer vbs dans ressource du projet
Code VBS <<toto.vbs>>
code vb.netCode:
1
2
3
4 Set WshShell = WScript.CreateObject("WScript.Shell") WshShell.Run "%windir% " WshShell.SendKeys "{TAB}"
j'ai une erreur >>Code:
1
2
3
4
5 Dim pp As New Process pp.StartInfo.Verb = "Open" pp.StartInfo.FileName = My.Resources.toto pp.Start()
qqun peut m'aider sachant que si je donne le chemin du scripteCitation:
Le fichier spécifié est introuvable
pp.StartInfo.FileName ="d:\temp\toto.vbs"
ça fonctionne correctement
Merci