Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Read him his rights
Message
From
08/05/2001 02:39:09
 
 
To
07/05/2001 17:16:31
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00501983
Message ID:
00504585
Views:
18
>If I had to rewrite the level-1 launcher, I'd probably go for your solution, though it wouldn't be the executable itself. From what I remember, Fox keeps the .exe open, and once one user is running it, you can't rename it even if you have all the rights you want... or would it be just another error to watch for. Still, I'm not sure it would give me both "you got no rights" and "though you got rights, you can't" versions of "sharing violation" error message. How did you solve that?

I used it for a slightly different solution... I was testing to see if a file could be installed - ie if you have 20 files that need installing simultaneously it would do this trick on each file before trying anything else if it got the all clear then it would go ahead and install.
So the only error messages I had to differentiate was File in use or file cannot be renamed to itself.
Will Jones
Previous
Reply
Map
View

Click here to load this message in the networking platform