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:
01041211
Vues:
23
I need to print documents (case report form) for different type of patients.
All company document are controlled documents that have a version in the flename such as : CL-SOP-CONSENT.00.01.DOC These document are often revised and to minimize tons of update and reference we use shortcuts.

So we have a shortcut call CONSENT.lnk that reference CL-SOP-CONSENT.00.01.DOC The application reads the shortcut and get the file reference

This way our clinical staff can update the shortcut whenever a new revision is available without breaking any code in all applications. This nice little project was develop on Windows XP (without service pack 2).

So when it was deployed on 2000 terminal server it started to have problem. when we saw that behavior on 2000 we taught that 2000 was behaving wrong.

But tonight I'm using an XP computer with SP2 and the behavior is the same as 2000.

We need to change the document picker so we can get the ".lnk" instead of the referenced file. I'm going to go with greg's idea, I will use GETDIR() with ADIR() and display all .lnk file in a list.

I've tried to find API call, comdiaglog or using oFS without any luck...

Thanks for your hint!


>Yes it's correct. According to the article, the .lnk file name should never be returned.
>What're you doing with shortcuts?
>
>
>>I found a article at Microsoft about this (831559)
>>http://support.microsoft.com/kb/831559/en-us
>>
>>If I understand correctly, It seem that the behavor in Windows XP is faulty and should return the file linked instead of the link file itself???
>>
>>It seem I better find a workaround...
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform