Rep de depart .net

cs_ynizon Messages postés 53 Date d'inscription mardi 30 avril 2002 Statut Membre Dernière intervention 19 avril 2012 - 24 mars 2005 à 16:43
cs_ynizon Messages postés 53 Date d'inscription mardi 30 avril 2002 Statut Membre Dernière intervention 19 avril 2012 - 24 mars 2005 à 16:55
Bonjour

j'aimerais connaitre le repertoire courrant (ou mon prog est installé) en VB.NET.

Theoriquement il y a "application.startup" mais pas avec le compact framework.



merci

-

1 réponse

cs_ynizon Messages postés 53 Date d'inscription mardi 30 avril 2002 Statut Membre Dernière intervention 19 avril 2012 1
24 mars 2005 à 16:55
c est bon j ai trouvé:

Dim aPath As String
Dim aName As String

aName = _
System.Reflection.Assembly.GetExecutingAssembly(). _
GetModules(0).FullyQualifiedName

aPath = System.IO.Path.GetDirectoryName(aName)

If Right(aPath, 1) <> "" Then
aPath += ""
End If



-
0
Rejoignez-nous