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

Novell Netware
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus

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

How to Determine Who Launched a Particular EXE

Keywords: 	   n4FileUsers

Question:

Do you know a way to see which user is running an exe-file at this time ? The exe-file is on a novell network-drive.

I want to control if the exe-file is starting more than once time parallel but I don't want to write flags, look for files the exe-files produces at runtime, etc.

Answer:

In that latest version of Winbatch (99G) is a currently undocumented function, n4FileUsers.
NetWare 4 extender 14024  First showing up in WB 99G

  New functions:

    n4FileUsers(s:server, s:filename)
      Lists network users who have a file open.

        "server" is the UNC name of the server on which the file is located
        (eg, "\\MYSERVER").

        "filename" is a full pathname to a file located on "server", in the
        form "volume:path" (eg, "SYS:USER\JOHNDOE\MYFILE.TXT").

        Note: This function requires console operator rights.

        Returns a tab-delimited list of user names.

It may be what you need.
Article ID:   W14162
Filename:   Who Launched a Particular EXE.txt
File Created: 1999:06:09:14:37:54
Last Updated: 1999:06:09:14:37:54