Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

LINK TO THIS FORUM!

Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Partner With Us!

"Best Of Breed" Forums Add Stickiness To Your Site
Partner Button
(Download This Button Today!)

Feedback

"...This site is truly a marvel. Without a doubt the most comprehensive, friendly and just plain useful resource of its kind..."

Geography

Where in the world do Tek-Tips members come from?

dBASE 5.0 for DOS - File Locking Info

singlenerd (TechnicalUser)
12 Dec 07 9:24
Hi All,

I am using dDBASE 5.0 for DOS.

I have a file locked and I am trying to get the information on who locked it. So far, I have tried using LKSYS() (already CONVERTed the tables) and it only works if I issue the command with the same user that has the file locked. Given that information, I could check a database for lock information, then lock the file and have the user report their information DBF(), ID(), TIME() and DATE() to a database file to be read by other users.

Is there a better way to get the lock information?

Thanks

---
"One source to query, one source to answer and one source to bind them." Aaron Sharp

dgrewe (MIS)
13 Dec 07 16:12
dBase can not tell you who has the file locked,  The operatining system has that information.  The network Administrator can help you with it.

Depending on the operating system,  Yo9u can make calls from dBase to the OS and get the info.  

David W. Grewe Dave

dbMark (Programmer)
28 Dec 07 12:43
The problem for decades has been that you can write programs to post to a logging table when a table is opened and later closed.  Unfortunately, life happens and there will always be exceptions now and again, such as...
  • Someone running a dBase developer's version will manually open a table - and it is not logged as in use.
  • Someone will crash their computer, or turn it off, or have a power glitch while the tables were open - and it is still logged as in use when it is not.  (On rare occasions a computer crash can leave server still thinking a file is open.  In that case, logging back on to the server and logging off properly usually clears it.)

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close