1.

Solve : Could someone make it for me...?

Answer»

Hello,

here is a request for a passionated guy...

I started an intenship in a company in which I can't install new softwares. However, I'd like to log automatically my arrival and departure times every days.

I know it's POSSIBLE and for sure it is easy for the experimented... but I don't want to spent time on it (I already have to deal with so many other languages).

Could someone code me
- a batch script that logs the time when I log in windows xp (I will put it in startup folder).
- and a batch script that I will use to shutdown the computer right after logging the current time.

I don't want to use an executable as I want to be sure it's not a virus or something... I don't want to be fired.

Thanks in advance to whom interested
login.bat
Code: [Select]>>c:\log.txt echo [%date% - %time%] %username% logged in

logshut.bat
Code: [Select]>>c:\log.txt echo [%date% - %time%] %username% logged off
shutdown -s

untested.Works perfectly. Thank you very much.

Unfortunately shutdown isn't allowed for me...
"A required privilege is not held by the client"

Nevermind... I'll shut down the computer by myself after logging...
sometimes being lazy is seems more exhausting Quote

I started an intenship in a company in which I can't install new softwares.

Beware - your internship may be brought to a sudden halt if what you are doing is not permitted by company rules.

Quote
However, I'd like to log automatically my arrival and departure times every days.

This may already be being MONITORED without your knowledge.

Quote
"A required privilege is not held by the client"

Your unauthorized ATTEMPTS to extend your existing privileges may ALSO be monitored.

Don't be so paranoid... nobody will fire an employee because... he wanted to log automatically his working hours!!

Quote
This may already be being monitored without your knowledge.
Yeah actually it is done for all the employees via smart cards except for interns who are monitored "visually" by the supervisors. So I wanted to know precisely my working time... as I always do extra time.

Quote
Your unauthorized attempts to extend your existing privileges may also be monitored.
Definitely... and maybe EVEN this message I'm writting to you may be moniited... so what... it's not like I had something to hide.

About the failling "shutdown" command... does somebody know a solution to automatically launch this script when I'm shutting down the computer manually (via start->shutdown button)?1. rundll32 shell32,#60
this popup the standyby/shutdown/restart dialog in my xp

2. copy c:\windows\system32\shutdown.exe and rename it as a new name. eg. sd.exe
then at bat file:
sd -s

3. type the following on command prompt, and see which one is accessible (in case the above two option doesn't work:
gpedit.msc
regedit
wmic
cscript


Quote from: Derdonn on March 27, 2009, 06:29:15 AM
About the failling "shutdown" command... does somebody know a solution to automatically launch this script when I'm shutting down the computer manually (via start->shutdown button)?
if your windows is xp pro, do you have access to gpedit.msc?Just fyi, Shutdown -s -f will force shutdown.


Discussion

No Comment Found