On Wed, 02 Mar 2005 12:48:42 -0500, Van Sickler, Jim
<[EMAIL PROTECTED]> wrote:
> Are you just looking for logon/logoff times?  I think you can put something
> in the logon/logoff scripts that will do that.
> 
> Logon tracking:
> @echo off
> echo %USERNAME% Logon >> \\server\hiddenshare\%USERNAME%.log  & date /t >>
> \\server\hiddenshare\%USERNAME%.log & time /t >>
> \\server\hiddenshare\%USERNAME%.log
> 

I played with this a bit & like the following implementation better:

@echo off
SET logoninfo=%USERNAME% logged on %DATE% %TIME:~0,8%
echo %logoninfo% >> \\server\hiddenshare\%USERNAME%.log


It's a bit more ''log like''.
Example output:

jdoe logged on Wed 03/02/2005 13:03:47 

Oh yeah, I also learned that ECHO.
(no space) makes a hard return in windows batch files.
-- 
Lars
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba

Reply via email to