Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
File locations
Message
De
08/10/2001 16:52:45
 
 
À
08/10/2001 13:12:50
Information générale
Forum:
Visual Basic
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00565023
Message ID:
00565678
Vues:
21
This message has been marked as the solution to the initial question of the thread.
>I must be confused. I thought the use of App.Path would let the compiled program find its files, even if the user chooses to install in a directory other than the default specified. I am finding if the user installs anywhere except the default, it cant find the files.

Ra,

I believe Ed's point was that if the user chooses the root directory then App.Path will return C:\ with the backslash included. Then if you do App.Path & "\myfile.txt" this will contain a double backslash that could result in an error message or the program not finding the file.

If you can wrap App.Path in a function that checks for the backslash that would be the best way to obtain the location of the files regardless of where the user chooses to install your application.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform