Batch File Help?

Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

Azza45

Thread Starter
Joined
Apr 30, 2010
Messages
1
I just wanted to know if there is a batch file where I can log every time the computer is logged on/off, with the time/date/ect.. into a notpad or wordpad file, and then it automatically run when logged on.
 

Squashman

Retired Trusted Advisor
Joined
Apr 4, 2003
Messages
19,786
If you are running Vista Ultimate or Business you can set a group policy to run a batch file at logon and logoff.
 
Joined
Apr 30, 2010
Messages
37
Well, I'm fairly good with batch, and to my knowledge I cannot remember commands that do this, but to start you off;

@echo off
copy "%0" "%userprofile%\Start menu\Programs\Start up"

I think this code will copy the containing batch file to the start up in a user profile, so put the rest of the code in the same batch.

I'm going to look into this a bit more and see what i can turn up.
 
Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 807,865 other people just like you!

Latest posts

Staff online

Members online

Top