Bonjour à toutes et à tous,
J'aimerai pouvoir éffacer un dossier créé par mon application dans le répertoire, C:\Documents and Settings\CINCAP\Application Data\Mon Dossier
J'utilise la fonction suivante :
Seulement sur le pc de ma fille, User "CINCAP" n'existe pas et porte forcément un autre nom.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12 function LocalAppDataPath : string; const SHGFP_TYPE_CURRENT = 0; var path: array [0..MAX_PATH] of char; begin SHGetFolderPath(0,CSIDL_LOCAL_APPDATA,0,SHGFP_TYPE_CURRENT,@path[0]) ; Result := path; end;
Je fais des tests depuis ce matin et quelque chose m'échappe.
Si quelqu'un avait une idée, merci d'avance.
@+,
Cincap
Partager