Tech Support > Microsoft Windows > Customizing > Is it Possible to run a batch file upon boot
Is it Possible to run a batch file upon boot
Posted by Sam on May 4th, 2008


With Win98, I created this batch program to trigger on every boot before
windows loaded:

rem This program copies clean dat files and Internet logs

copy c:\windows\copies\index.dat c:\windows\cookies
copy c:\windows\copies\index.dat c:\windows\locals~1\tempor~1\content.ie5
copy c:\windows\copies\index.dat c:\windows\history\history.ie5
copy c:\windows\copies\index.dat c:\windows\history\history.ie5\mshist~1
copy c:\windows\copies\index.dat c:\windows\tempor~1\content.ie5
copy c:\windows\copies\win386.swp c:\windows
copy c:\windows\copies\win386.swp c:\
@DelTree /Y C:\WINDOWS\Temp
@MD C:\Windows\Temp

The index.dat keeps track of all the sites you vist and never gets deleted.
Possible security risk. XP does not use autoexec.bat and config.sys, is
there another way to do this with XP? Thanks.


Posted by Leonard Grey on May 4th, 2008


Are you aware of any virus or spyware that has examined a user's index
files?

---
Leonard Grey
Errare humanum est

Sam wrote:

Posted by Sam on May 4th, 2008


"Leonard Grey" wrote:

| Are you aware of any virus or spyware that has examined a user's index
| files?

At present, no. However, if I were a programmer of spyware company and
wanted to target a particular group(s) in means of gathering surfing habits
and other info to sell or spam you; what better way to find out where you
frequent? It's preventive maintenance. It's likely, sooner or later some
company will pick up upon this wealth of info. Even though I wipe the drive
every 2-3 months, most people won't bother unless something goes wrong and
that could be a few years of complied data they would obtain. Am I overly
paranoid? Maybe... but maybe not.


Posted by Leonard Grey on May 4th, 2008


So far spammers and spyware creators have done extremely well without
the need to search your indexes.

---
Leonard Grey
Errare humanum est

Sam wrote:

Posted by Sam on May 4th, 2008


"Leonard Grey" wrote:

| So far spammers and spyware creators have done extremely well without
| the need to search your indexes.

That is true, however, why aid them if you can possibly prevent it? What
about hackers with key loggers? A lot of people bookmark sites that they
frequent, so the loggers wouldn't be capable of picking that info up. (I
don't think anyway) Scanning the index file would be a step closer into
matching up and getting into someone's account. With that aside, and
getting back to my original question. do you know if it is possible to run a
batch file on boot?


Posted by ju.c on May 4th, 2008


There are many ways to do what you want, I can't list them all, but
maybe this is all you need:

--------------------------------------------
REGEDIT4

[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows
NT\CurrentVersion\WinLogon]
"ParseAutoexec"="1"
--------------------------------------------


ju.c


"Sam" <none> wrote in message
news:481e037e$0$7707$4c368faf@roadrunner.com...

Posted by Shenan Stanley on May 4th, 2008


Sam wrote:
You can have Startup Scheduled tasks.
Windows XP can use AutoExec.

--
Shenan Stanley
MS-MVP
--
How To Ask Questions The Smart Way
http://www.catb.org/~esr/faqs/smart-questions.html



Posted by Sam on May 4th, 2008


"ju.c" wrote:

| There are many ways to do what you want, I can't list them all, but
| maybe this is all you need:
|
| --------------------------------------------
| REGEDIT4
|
| [HKEY_LOCAL_MACHINE\Software\Microsoft\Windows
| NT\CurrentVersion\WinLogon]
| "ParseAutoexec"="1"
| --------------------------------------------

So if I understand correctly, this tweak will run before windows is loaded
so the files can be over written? Which autoexec does it parse the (.bat) or
(.nt)?


Posted by ju.c on May 4th, 2008


Yes, read on . . .

Subject: autoexec.bat XP:
http://www.computing.net/answers/pro...-xp/11646.html

STARTUP PROGRAM LOADING
Where do things load from?
How do you stop them?
http://www.aumha.org/a/loads.php


ju.c



"Sam" <none> wrote in message
news:481e4398$0$12885$4c368faf@roadrunner.com...

Posted by Sam on May 5th, 2008


Thanks, I'll check it out.

"ju.c" wrote:

| Yes, read on . . .
|
| Subject: autoexec.bat XP:
| http://www.computing.net/answers/pro...-xp/11646.html
|
| STARTUP PROGRAM LOADING
| Where do things load from?
| How do you stop them?
| http://www.aumha.org/a/loads.php