Voilà, je désire lancer automatiquement mon prog au démarrage, alors j'utilise un script trouve ici:
...
sAdresse = App.Path & "" & "KanTak.exe"
Dim lRet As Long, lHnd As Long, lLen As Long, _
sKey As String, Test As String
sKey = "software\microsoft\windows\currentversion\run"
lRet = RegOpenKeyEx(HKEY_LOCAL_MACHINE, sKey, 0&, _ KEY_SET_VALUE, lHnd)
...
mais si la personne est maline, elle va modifier le nom du fichier en KanTak2.exe par exemple et ca marchera plus!
Moi je recherche un truc du style :
sAdresse = App.Path & "" & Process.ExeName
Et oui autant pour moi, a chaque fois je testais mon prog dans l'environnement de développement, A vouloir aller trop vite!
Merci
App.EXEName :
Returns the name of the executable file for the current project. If running in the development environment, returns the name of the project.