I want to implement a project where I check system timings whenever I am logged in. If I enter the office and log in my system the I should get the time and also when I go for a break I just loc开发者_如何学Gok my PC and go so at that time time should stop and again when I login it should start. Basically it should show me the total time I was logged in my computer/PC. after seeing the reply i got an understaning that i should create a batch file and load in startups. what should be in batch file.
You can do this with the the DOS command echo "LOGIN","%DATE%", "%TIME%" >> timelog.csv
in a batch file. If you format the output properly you can open it in MS Excell and add formulas to calculate your time.
You may be able to find a screen saver that will run arbitrary batch commands on screen lock/unlock to record your breaks.
精彩评论