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: W14162Filename: Who Launched a Particular EXE.txt