OVH Cloud OVH Cloud

autorun

2 réponses
Avatar
gilles
slt a tous
g passe une annonce mais pas parue je recommence

shellexecute=3DD:install=20
c facile mais comment fait on si le lecteur a la racine E:
ou F: quelqu un pourrait il m =E9crire la ligne

merci d'avance
gilles

2 réponses

Avatar
ng
Salut,

Pour une application, un Shell() suffit :

Call Shell(Left$(App.Path,2) & "install.exe",vbNormalFocus)

En admettant que le programme qui s'execute (l'autorun donc) soit aussi sur
le cd (le programme d'installation install.exe doit aussi être à la racine
du cd).

--
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/



gilles a écrit :

slt a tous
g passe une annonce mais pas parue je recommence

shellexecute=D:install
c facile mais comment fait on si le lecteur a la racine E:
ou F: quelqu un pourrait il m écrire la ligne

merci d'avance
gilles


Avatar
François Picalausa
hello,

je te conseille de regarder les autres autorun.
Exemple:
[autorun]
open=setup.exe /autorun
icon=setupapp.ico
Name=App

Donc il te suffit d'employer un chemin relatif.
Celà te donne
shellexecute=install.exe

Tu peux aussi jeter un oeil à la faq:
http://faq.vb.free.fr/index.php?questionU

--
François Picalausa (MVP VB)
http://faq.vb.free.fr --- http://msdn.microsoft.com
http://apisvb.europe.webmatrixhosting.net

"gilles" a écrit dans le message de
news:2bb1201c468db$12a33970$
shellexecute=D:install
c facile mais comment fait on si le lecteur a la racine E:
ou F: quelqu un pourrait il m écrire la ligne