Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Logging Time In and Time Out

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,52503
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Logging Time In and Time Out
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 Logging Time In and Time Out - 10/5/2007 10:31:25 AM   
  StylinLancer


Posts: 57
Score: 0
Joined: 10/4/2006
Status: offline
   What is the easiest way I can log time in and time out each day?

 
 
Post #: 1
 
 RE: Logging Time In and Time Out - 10/7/2007 4:15:36 PM   
  sheepz


Posts: 247
Score: 2
Joined: 3/17/2006
From: Riverside the 909s
Status: offline
do you mean when come in for work and leave work, you want a log file?  or is this for all employees within your network?

(in reply to StylinLancer)
 
 
Post #: 2
 
 RE: Logging Time In and Time Out - 10/7/2007 10:27:40 PM   
  StylinLancer


Posts: 57
Score: 0
Joined: 10/4/2006
Status: offline
Yes I mean when I come in for work and leave. It'll be for personal use only. I need some way to keep track of my time so I'm not getting screwed for hours I worked. Not sure if the log file is best but if you have another suggestion I'm all ears.

quote:

ORIGINAL: sheepz

do you mean when come in for work and leave work, you want a log file?  or is this for all employees within your network?

(in reply to sheepz)
 
 
Post #: 3
 
 RE: Logging Time In and Time Out - 10/8/2007 12:58:57 PM   
  sheepz


Posts: 247
Score: 2
Joined: 3/17/2006
From: Riverside the 909s
Status: offline
well the easiest is to of course track it yourself by writing it down... if you want something more automated, you would need to have a logon script and log off script. because turning on "auditing logon events" only track successful and failed logon's not log offs.  you could use something like this:

logon script:  put this in your "start menu" to simulate logon script

TimeStampLogon = "Logged on:  " & Date & " " & Time
Const ForAppending = 8
strFileName = "Timesheet.txt"
Set objFSO = CreateObject("Scripting.FileSystemObject")
If Not objFSO.FileExists(strFileName) Then
  objFSO.CreateTextFile strFileName, True
End If
Set objAppend = objFSO.OpenTextFile(strFileName, ForAppending)
objAppend.WriteLine TimeStampLogon
objAppend.Close


and something like this for a log off script:

TimeStampLogOff = "Logged Off:  " & Date & " " & Time
Const ForAppending = 8
strFileName = "Timesheet.txt"
Set objFSO = CreateObject("Scripting.FileSystemObject")
If Not objFSO.FileExists(strFileName) Then
  objFSO.CreateTextFile strFileName, True
End If
Set objAppend = objFSO.OpenTextFile(strFileName, ForAppending)
objAppend.WriteLine TimeStampLogOff
objAppend.Close



(in reply to StylinLancer)
 
 
Post #: 4
 
 RE: Logging Time In and Time Out - 10/9/2007 10:31:33 PM   
  StylinLancer


Posts: 57
Score: 0
Joined: 10/4/2006
Status: offline
This seems like it'll work just right. I was thinking more along the lines of a simple hta with two simple input boxes, etc.

(in reply to sheepz)
 
 
Post #: 5
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Logging Time In and Time Out Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts