Nom de mon EXE.

KanTak - 5 sept. 2001 à 00:54
 KanTak - 5 sept. 2001 à 11:45
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

Merci KanTak

2 réponses

app.exename
0
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.
0
Rejoignez-nous