Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Compare directory name with itself... 8.3
Message
De
20/03/2018 08:08:30
 
 
À
20/03/2018 08:01:53
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Divers
Thread ID:
01658846
Message ID:
01658847
Vues:
62
This message has been marked as the solution to the initial question of the thread.
>I have a funny problem. I need to copy a file to %temp% folder and I should check whether the source file is actually that same file. I'll check that some other way, probably using LLFF, but while trying to just compare folder names I ran into a problem. The sourcefile's name is retrieved from the file dialog ocx (of msComCtl), and its name looks like c:\users\dnedeljkovich\AppData\Local\temp\something.ext, however my app.tempPath is set from getenv("temp") or sys(2023) which both give c:\users\DNEDEL~1\AppData\Local\temp\something.ext - which is the same path, just that the latter is in dreaded old 8.3 (and yes, issuing set in cmd.exe shows that TEMP environment variable is exactly what getenv() shows).
>
>I sort of remember we had (20 years ago) some function which would convert LFNs into 8.3 for comparison. What was it? Anyone with memory better than mine?

This ? https://msdn.microsoft.com/en-us/library/windows/desktop/aa364989(v=vs.85).aspx
Gregory
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform