Tu veux lire le comptenu de la ligne de commande lorsque tu lances ton application : monApp.exe text1.txt Text2.exe -h
Le code pour lire est le suivant (a placer dans la procedure Form_Load) :
if Command$<>"" then
z$=command$
if instr(z$," ") = 0 then
t$=z$
appel_ta_fonction
else
do until z$=""
t$=mid$(z$,1,instr(z$," ")-1)
Appel_de_ta_fonction
if instr(z$," ") then z$=mid$(z$,instr(z$," ")+1) else z$=""
loop
end if
end if
Dans t$, on aurras l'option de ligne de commande passer au programme.