!!!!!! Ligne de commande !!!!!!!

schouly - 5 janv. 2001 à 23:40
 int19h - 8 janv. 2001 à 04:09
J'aimerais ajouter une ligne de commande à mon appli pour par exemple démarrer avec un autre form mais je ne sais comment faire

ex:
monap.exe /d

Merci

Schouly

3 réponses

'lut

la commande en VB :

shell "monap.exe /d"

[Hawk]
0
En fait je veux créé une ligne de commande pour mon application !!
0
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.

Question(s) : int19h@usa.net

A+

Int19h
0
Rejoignez-nous