WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

Microsoft Client
plus
plus

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

wXXFileUsers Functions Usage

Keywords: 	 w95FileUsers w9XFileUsers wnFileUsers

Question:

(1) Why is the second parameter of these functions a hard coded local file in the help file if you're specifying a server in the first parameter (e.g., "C:\DOC\MYFILE.TXT"). Shouldn't this be a file up on the server? (2) The only way I've gotten it to work is to map a drive to the server share and then test to see if the file is in use. It doesn't seem to work with a UNC? (3) What permissions are required for w9XFileUsers to see who's accessing a file on the server?

Answer:

> (1) Why is the second parameter of these functions a hard coded local
> file in the help file if you're specifying a server in the first
> parameter (e.g., "C:\DOC\MYFILE.TXT").  Shouldn't this be a file up on
> the server?  

It is.  The function needs the file name from the point of view of the server that
is specified in parameter 1  So its looking for c:\DOC\MYFILE.TXT on the server,
not your local HD.

The filename parameter specifies an actual file located on the server
(specified by the first parameter).  No UNC's.


> (2) The only way I've gotten it to work is to map a drive
> to the server share and then test to see if the file is in use.  It
> doesn't seem to work with a UNC? 

See (1)

(3) What permissions are required for
> w9XFileUsers to see who's accessing a file on the server?


The user running the script must be a member of the Administrators or
Account Operators local group.

Article ID:   W14473
Filename:   wxxFileUsers Functions.txt
File Created: 2000:03:03:16:05:02
Last Updated: 2000:03:03:16:05:02