We use Windows Small Bussiness Server 2003 and Netexpress 5.1. The FILESHARE works perfect as described in the documentation. If a file/record is locked I receive the file Status 9/65 or 9/68 indicating this Situation. But besides this Status, is there any way or API to know Information about who has the lock? I Need the Name of the terminal or user in order to inform who is locking the file or record.
We use Windows Small Bussiness Server 2003 and Netexpress 5.1. The FILESHARE works perfect as described in the documentation. If a file/record is locked I receive the file Status 9/65 or 9/68 indicating this Situation. But besides this Status, is there any way or API to know Information about who has the lock? I Need the Name of the terminal or user in order to inform who is locking the file or record.
Under Unix there is a wholock command that can tell you this but under Windows I do not know of an equivalent.
You might look at using the fsview utility in order to see which users currently have the file open in fileshare.
We use Windows Small Bussiness Server 2003 and Netexpress 5.1. The FILESHARE works perfect as described in the documentation. If a file/record is locked I receive the file Status 9/65 or 9/68 indicating this Situation. But besides this Status, is there any way or API to know Information about who has the lock? I Need the Name of the terminal or user in order to inform who is locking the file or record.
No, it was not possible for us to let FILESHARE. Any demo?
We tryed with the command
openfiles /query /V /s servidor >archivo.txt
If it works, we get a file that we can Analyse.
But this command works only if the user is an Administrator, otherwise he receives an error.
Making a BAT it is the same the user must be an administrator
Including the Contents of the BAT in a NETEXPRESS program
002841 STRING "OPENFILES /query /v /s servidor >OCUPADO.txt"
002844 x"00" DELIMITED BY SIZE
002845 INTO CmdLine,
002852 call winapi "WinExec"
002853 using by reference CmdLine
002854 by value CmdShow
002855 returning CmdStatus.
it works only with WINDOW Vista an beeing an Administrator.
Is it possible to chage the attributes to Administrator only within a NETEXPRESS program?
Can I detect if I am working with 32 or 64 Bits from within the program and run different commands depending on the result?
Sign up
Already have an account? Login
Welcome to the Rocket Forum!
Please log in or register:
Employee Login | Registration Member Login | RegistrationEnter your E-mail address. We'll send you an e-mail with instructions to reset your password.