Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Read him his rights
Message
De
02/05/2001 13:19:36
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
02/05/2001 05:02:26
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00501983
Message ID:
00502614
Vues:
16
>A technique that I used (a long time ago in 2.5/dos) to find if a user had sufficient rights to do something to a file was as follows...
>
>Try and rename the file to itself
>
Rename filename.exe to filename.exe
>If the user does not have NW rights an error is reported
>If the user has rights then a different error is reported (something like cannot rename to the same name)
>
>You need to have a localised error trapping routine for this but it does work (all this was on a Novell N/W but It may work in the same way)

This sounds really interesting and looks like one of those neat VFP tricks. I figure the error reported would depend on the operating system involved, but since we'd have to cover only one, it'd be an option. Actually, it's the best plan B I've got so far - plan A would be a separate level-2 launcher in a subdirectory, one per application, so that the IT folks there would be able to set up the rights at this subdirectory level, and then the level-1 launcher would just check for the visibility of level-2 launchers.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform