PCPT
Messages postés13272Date d'inscriptionlundi 13 décembre 2004StatutMembreDernière intervention 3 février 201847 21 sept. 2007 à 01:02
salut,
vbs n'est pas un exe, çà ne fonctionnera pas!
il faut passer par l'api shellexecute :
Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long
ydu
Messages postés61Date d'inscriptionmercredi 1 mars 2006StatutMembreDernière intervention 6 août 2009 21 sept. 2007 à 08:48
Salut merci pour ta réponse.
J'ai fais un copier coller du code mais cela ne fonctionne pas j'ai du tres certainement mal m'y prendre merci pour voytre aide
voici ce que j ai ecrit dans VB
Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long
ShellExecute Me.hwnd, "open", "C:\Documents and Settings\ydu\Bureau\decoupe.vbs", 0&, vbNullString, 0&
PCPT
Messages postés13272Date d'inscriptionlundi 13 décembre 2004StatutMembreDernière intervention 3 février 201847 21 sept. 2007 à 09:08
'tout en haut de ta form ou de ton module
Private
Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA"
(ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As
String, ByVal lpParameters As String, ByVal lpDirectory As String,
ByVal nShowCmd As Long) As Long