Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Tracking Workstations Logged Into App
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01243504
Message ID:
01243557
Views:
18
>Tommy,
>
>#2 is *easy*. Just write a dummy text file out to a known common location when you start the nightly series. When a user starts the app, check first thing to see if the text file exists in the known location, and if it is, show a message that says "sorry, we're running the nightly series, you'll have to try later" and exit the app. When the series is finished, delete the text file and everybody's good to go again.
>
>HTH.
>

Thanks for the info!

Tommy

>>Hello Gang,
>>
>>I have an app that is shared using multiple workstations. They are using a peer to peer Network setup.
>>
>>One of the workstations has the data, which is shared amongst the various other workstations.
>>
>>Any of the workstations can run a program that is part of the app called "Nightly Series".
>>When this runs, it packs and reindexes the files, among other things. So, at some point, it needs exclusive use of the tables. When finished, this workstation exits the program totally, going to the Windows desktop. The other workstations are out of the app (back to the desktop) when Nightly Series runs on the other workstation.
>>
>>****************************************
>>
>>What I would like are 2 things..
>>
>>1) Be able to know, when I select Nightly Series, that all of the other users have left the app (back to their desktop)....
>>
>>2) If Nightly Series is running, not allow a user to enter the app on another workstation until Nightly Series is finished (on the workstation it is running on).
>>
>>****************************************
>>
>>I tried some ideas already. The last idea was based on Speedie's idea of having a table for keeping track of those logging in. When they login, they "LOCK" their record. When they leave the app, they "UNLOCK" their record (or if they crash out, this should unlock automatically).
>>When going into Nightly Series, I checked each record to see if it was "LOCKED" (by trying to Lock each record and seeing if it does not allow me to lock the record).
>>
>>What ideas have you tried and worked?
>>
>>Thanks!
Tommy Tillman A+ NetWork+ MCP
Previous
Reply
Map
View

Click here to load this message in the networking platform