1.

Solve : make a batch file run on its on?

Answer»

i need to do up a batch file run on its own the second someone logs on my laptop, the problem is i have vista and the old batch from my old laptop wont run on its own now, is there a way i can do it with vista?

the batch i have now is to log when people log on the laptop

Code: [SELECT][code]echo @prompt set date=$d$_set time=$t$h$h$h > {a}.bat
%comspec% /e:2048 /c {a}.bat > {b}.bat
for %%V in ({b}.bat del) do call %%v {?}.bat
echo %date% %time% >> log[/code]

i think i maybe mist a bit when i coped it, any help would be great.cant you make an auto run file useing note paddoing a link to the batch file into Start->Prorams->STARTUP folder doesn't work??Quote from: steven32collins on December 01, 2008, 09:26:43 AM

cant you make an auto run file useing note pad

how i make an auto run file ?The auto run can be on a CD-R
and it can invoke a batch file on your hard drive.
Look at this:
http://articles.techrepublic.com.com/5100-10878_11-5268081.html

Use fgdn17's suggestion.

In Vista:

For all users:
C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup
(This path is hidden--you'll need to show hidden FILES and folders first)

For just one user:

C:\Users\username\Start Menu\Programs\Startupyes you can make
copy the below script and paste in notepad

@echo off
title whatever
:whatever
cls
color b
start " "

put the address of your file between those to " "

hope this helpQuote from: Depender on September 09, 2009, 07:14:38 AM
yes you can make a autorun using notepad
copy the below script and paste in notepad

@echo off
title whatever
:whatever
cls
color b
start " "

put the address of your file between those to " "
remember all the files you are running should be in same folder where the batch file is

hope this help
this seems to be some what of a DOUBLE post. As you were asking how to make a batch run at a certain time in the other one as well.


Discussion

No Comment Found