Cette action est irreversible, confirmez la suppression du commentaire ?
Signaler le commentaire
Veuillez sélectionner un problème
Nudité
Violence
Harcèlement
Fraude
Vente illégale
Discours haineux
Terrorisme
Autre
le_troll
Bonjour, ça, ça devrait lance un exe: Dim r r = Shell("nom.exe", 1)
-- Merci, @+, bye, Joe troll75 AROBASE iFrance POINT com ------------------------------------------ Ce message est plein de virus "certifiés" Le_Troll, éleveur de Trolls depuis César, qui disait: Avec une hache, celui qui tient le manche a toujours raison ! ------------------------------------------
"beedjees" a écrit dans le message de news: 22ff301c45deb$17cfab40$ Bonjour, j'utilise visual studio et je souhaite qu'a la fin de mon programme une instruction lance un autre programme.
en ASP ceci se traduit comme ça :
Set wshell = Server.CreateObject("wscript.shell") strCommands = "prgm.exe" wshell.Run(strCommands) set wshell = nothing
Mais dans Visual Basic, je ne sais pas comment faire. D'autant plus que je trouve l'aide pas très clair...
merci par avance
Bonjour, ça, ça devrait lance un exe:
Dim r
r = Shell("nom.exe", 1)
--
Merci, @+, bye, Joe
troll75 AROBASE iFrance POINT com
------------------------------------------
Ce message est plein de virus "certifiés"
Le_Troll, éleveur de Trolls depuis César, qui disait:
Avec une hache, celui qui tient le manche a toujours raison !
------------------------------------------
"beedjees" <anonymous@discussions.microsoft.com> a écrit dans le message de
news: 22ff301c45deb$17cfab40$a501280a@phx.gbl...
Bonjour,
j'utilise visual studio et je souhaite qu'a la fin de mon
programme une instruction lance un autre programme.
en ASP ceci se traduit comme ça :
Set wshell = Server.CreateObject("wscript.shell")
strCommands = "prgm.exe"
wshell.Run(strCommands)
set wshell = nothing
Mais dans Visual Basic, je ne sais pas comment faire.
D'autant plus que je trouve l'aide pas très clair...
Bonjour, ça, ça devrait lance un exe: Dim r r = Shell("nom.exe", 1)
-- Merci, @+, bye, Joe troll75 AROBASE iFrance POINT com ------------------------------------------ Ce message est plein de virus "certifiés" Le_Troll, éleveur de Trolls depuis César, qui disait: Avec une hache, celui qui tient le manche a toujours raison ! ------------------------------------------
"beedjees" a écrit dans le message de news: 22ff301c45deb$17cfab40$ Bonjour, j'utilise visual studio et je souhaite qu'a la fin de mon programme une instruction lance un autre programme.
en ASP ceci se traduit comme ça :
Set wshell = Server.CreateObject("wscript.shell") strCommands = "prgm.exe" wshell.Run(strCommands) set wshell = nothing
Mais dans Visual Basic, je ne sais pas comment faire. D'autant plus que je trouve l'aide pas très clair...
merci par avance
ng
Salut,
Regarde du cote de Shell(), ShellExecute() ou encore de WinExec()
-- Nicolas G. FAQ VB : http://faq.vb.free.fr API Guide : http://www.allapi.net Google Groups : http://groups.google.fr/ MZ-Tools : http://www.mztools.com/ http://apisvb.europe.webmatrixhosting.net/
beedjees a écrit :
Bonjour, j'utilise visual studio et je souhaite qu'a la fin de mon programme une instruction lance un autre programme.
en ASP ceci se traduit comme ça :
Set wshell = Server.CreateObject("wscript.shell") strCommands = "prgm.exe" wshell.Run(strCommands) set wshell = nothing
Mais dans Visual Basic, je ne sais pas comment faire. D'autant plus que je trouve l'aide pas très clair...
merci par avance
Salut,
Regarde du cote de Shell(), ShellExecute() ou encore de WinExec()
--
Nicolas G.
FAQ VB : http://faq.vb.free.fr
API Guide : http://www.allapi.net
Google Groups : http://groups.google.fr/
MZ-Tools : http://www.mztools.com/
http://apisvb.europe.webmatrixhosting.net/
beedjees <anonymous@discussions.microsoft.com> a écrit :
Bonjour,
j'utilise visual studio et je souhaite qu'a la fin de mon
programme une instruction lance un autre programme.
en ASP ceci se traduit comme ça :
Set wshell = Server.CreateObject("wscript.shell")
strCommands = "prgm.exe"
wshell.Run(strCommands)
set wshell = nothing
Mais dans Visual Basic, je ne sais pas comment faire.
D'autant plus que je trouve l'aide pas très clair...
Regarde du cote de Shell(), ShellExecute() ou encore de WinExec()
-- Nicolas G. FAQ VB : http://faq.vb.free.fr API Guide : http://www.allapi.net Google Groups : http://groups.google.fr/ MZ-Tools : http://www.mztools.com/ http://apisvb.europe.webmatrixhosting.net/
beedjees a écrit :
Bonjour, j'utilise visual studio et je souhaite qu'a la fin de mon programme une instruction lance un autre programme.
en ASP ceci se traduit comme ça :
Set wshell = Server.CreateObject("wscript.shell") strCommands = "prgm.exe" wshell.Run(strCommands) set wshell = nothing
Mais dans Visual Basic, je ne sais pas comment faire. D'autant plus que je trouve l'aide pas très clair...
merci par avance
François Picalausa
Hello,
ou encore de WinExec()
De CreateProcess tu veux dire? Note WinExec function is provided only for compatibility with 16-bit Windows. Applications should use the CreateProcess function.
Voire pour win NT/2k/xp : CreateProcessAsUser ou encore pour 2k/xp : CreateProcessWithLogonW S'il y a besoin d'exécuter sous un profile particulier...
-- François Picalausa (MVP VB) http://faq.vb.free.fr --- http://msdn.microsoft.com http://apisvb.europe.webmatrixhosting.net
"ng" a écrit dans le message de news:
Hello,
ou encore de WinExec()
De CreateProcess tu veux dire?
Note WinExec function is provided only for compatibility with 16-bit
Windows. Applications should use the CreateProcess function.
Voire pour win NT/2k/xp : CreateProcessAsUser
ou encore pour 2k/xp : CreateProcessWithLogonW
S'il y a besoin d'exécuter sous un profile particulier...
--
François Picalausa (MVP VB)
http://faq.vb.free.fr --- http://msdn.microsoft.com
http://apisvb.europe.webmatrixhosting.net
"ng" <ng@ngsoft-fr.com> a écrit dans le message de
news:emzxeWhXEHA.2664@TK2MSFTNGP09.phx.gbl
De CreateProcess tu veux dire? Note WinExec function is provided only for compatibility with 16-bit Windows. Applications should use the CreateProcess function.
Voire pour win NT/2k/xp : CreateProcessAsUser ou encore pour 2k/xp : CreateProcessWithLogonW S'il y a besoin d'exécuter sous un profile particulier...
-- François Picalausa (MVP VB) http://faq.vb.free.fr --- http://msdn.microsoft.com http://apisvb.europe.webmatrixhosting.net
"ng" a écrit dans le message de news:
ng
Exact :D
WinExec() est la fonction que j'avais l'habitude d'utiliser en C++ c'est pour ca que je l'ai collée là ;)
-- Nicolas G. FAQ VB : http://faq.vb.free.fr API Guide : http://www.allapi.net Google Groups : http://groups.google.fr/ MZ-Tools : http://www.mztools.com/ http://apisvb.europe.webmatrixhosting.net/
François Picalausa a écrit :
Hello,
ou encore de WinExec()
De CreateProcess tu veux dire? Note WinExec function is provided only for compatibility with 16-bit Windows. Applications should use the CreateProcess function.
Voire pour win NT/2k/xp : CreateProcessAsUser ou encore pour 2k/xp : CreateProcessWithLogonW S'il y a besoin d'exécuter sous un profile particulier...
Exact :D
WinExec() est la fonction que j'avais l'habitude d'utiliser en C++ c'est
pour ca que je l'ai collée là ;)
--
Nicolas G.
FAQ VB : http://faq.vb.free.fr
API Guide : http://www.allapi.net
Google Groups : http://groups.google.fr/
MZ-Tools : http://www.mztools.com/
http://apisvb.europe.webmatrixhosting.net/
François Picalausa <fpicalausa@chez.com> a écrit :
Hello,
ou encore de WinExec()
De CreateProcess tu veux dire?
Note WinExec function is provided only for compatibility with 16-bit
Windows. Applications should use the CreateProcess function.
Voire pour win NT/2k/xp : CreateProcessAsUser
ou encore pour 2k/xp : CreateProcessWithLogonW
S'il y a besoin d'exécuter sous un profile particulier...
WinExec() est la fonction que j'avais l'habitude d'utiliser en C++ c'est pour ca que je l'ai collée là ;)
-- Nicolas G. FAQ VB : http://faq.vb.free.fr API Guide : http://www.allapi.net Google Groups : http://groups.google.fr/ MZ-Tools : http://www.mztools.com/ http://apisvb.europe.webmatrixhosting.net/
François Picalausa a écrit :
Hello,
ou encore de WinExec()
De CreateProcess tu veux dire? Note WinExec function is provided only for compatibility with 16-bit Windows. Applications should use the CreateProcess function.
Voire pour win NT/2k/xp : CreateProcessAsUser ou encore pour 2k/xp : CreateProcessWithLogonW S'il y a besoin d'exécuter sous un profile particulier...