Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
GetFile() behaves different in XP vs 2000
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01041132
Message ID:
01041206
Vues:
20
You are right,

The only clue I might have is that my System Admin told me that Microsoft added security to .lnk. So when you receive a file such as: "Have_a_good_time.BMP.LNK" and you click on it you don't have any suprises...


>Hi Luc,
>
>Under WIndow XP I get the link name if extension is specified (GETFILE("lnk")) and not changed to 'all' in the dialog. Otherwise I get the target name. I'm wondering if there's a registry settings that controls it.
>
>>I am having a frustrating time getting GETFILE() to return the name of a selected link file in VFP 9 on a 2000 operating system.
>>
>>If a link file is selected using GETFILE(), it returns the name and path of the file linked instead of the link file itself.
>>
>>For example, I have a link file called "Test.lnk". It's target is "C:\Docs\Result.doc". If I select it with GETFILE(), it returns "C:\Docs\Result.doc" on a 2000 machine and "Test.lnk" on a XP machine.
>>
>>I get the same weird behavior with locfile()
>>
>>Any workaround available ?
Luc Nadeau
lnadeau@neova.ca

"the theory, it is when all is known and that nothing works. The practice, it is when all works and that nobody knows why." - Albert Einstein (Nobel of physique 1921)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform