PDA

Click to See Complete Forum and Search --> : Autoexec.bat in Me/NT/2000/XP


j2k
Sep 25th, 2002, 09:33 AM
Hi all,

Is there any way to make Windows read autoexec.bat before bootup?

The reason is because I want to DEL index.dat every time Windows boots. Yes it works in 9x because autoexec.bat is parsed, but not with Me/NT/2000 or XP.

Any ideas?

Thanks!

DiGiTaIErRoR
Sep 25th, 2002, 09:47 AM
You could add a registry entry to run cmd.exe and del the file.

j2k
Sep 25th, 2002, 10:02 AM
But registry entries are loaded when Windows has fully loaded. When Windows has fully loaded you cannot delete index.dat.

DiGiTaIErRoR
Sep 25th, 2002, 10:09 AM
Why do you want to delete it?

j2k
Sep 25th, 2002, 10:11 AM
Cos the file is fairly large in size and I don't want it logging all the sites I visit even after I empty the temp files.

Any ideas how to delete the file anyone?

DiGiTaIErRoR
Sep 25th, 2002, 11:00 AM
I did a search of index.dat on my comp.

One of them almost 6 MB, I was able to delete.

The rest are of paltry size.

JoshT
Sep 25th, 2002, 11:46 AM
index.dat is for Internet Explorer, not the registry, right?

Anyway, NT+ has the special mode chkdsk or scandsk run in before going into the GUI, perhaps there's a way to run something there.

DiGiTaIErRoR
Sep 25th, 2002, 12:25 PM
I was able to delete all index.dat files on my comp except one that was a mere 80 kb.

j2k
Sep 26th, 2002, 04:47 AM
Panic over :)

I found a solution how to load commands in Windows NT/2000/XP before Windows boots without using autoexec.bat...

Not sure if it works with Windows Me though :(

DiGiTaIErRoR
Sep 26th, 2002, 06:24 AM
Mind sharing?

j2k
Sep 26th, 2002, 07:06 AM
Yeah sure :)

NT/2000/XP parse config.nt and autoexec.nt in the WINNT\SYSTEM32 folder so I just added the entries there :)

Still no luck with Me though.

DiGiTaIErRoR
Sep 26th, 2002, 07:17 AM
Windows ME sucks anyway. ;)

j2k
Sep 26th, 2002, 08:30 AM
DiGiTaIErRoR, out of curiosity what is your version of Windows?

Thanks

DiGiTaIErRoR
Sep 26th, 2002, 07:21 PM
Win2k Advanced Server.

mastermind94
Sep 27th, 2002, 05:54 PM
Command Prompt???

HItting F8 when starting Windows... but Windows ME doesnt have a command prompt (M$ wanted to prove that DOS was not in WinME but, they are a bunch of liar)

Evil_Cowgod
Oct 1st, 2002, 05:51 AM
try using this, apparantly it starts before a lot of other stuff...
HKEY_LOCAL_MACHINE\Software\Microsoft\Active Setup\Installed Components\KeyName
StubPath=C:\PathToFile\Filename.exe

baja_yu
Mar 31st, 2004, 05:26 AM
There is a registry item that needs to be added to 2000/XP systems to enable parsing of Autoexec.bat file.

I forgot which it is, try searching your reg or google
for ParseAutoexec

When you change its value to 1
you will then be able to use it and delete files on boot.


Regards,
Baja

Bellig
Apr 8th, 2004, 10:40 PM
The following Registry key might be useful:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run

It runs tasks before Windows fully loads.