Results 1 to 18 of 18

Thread: Autoexec.bat in Me/NT/2000/XP

  1. #1

    Thread Starter
    Member
    Join Date
    Jul 2002
    Posts
    55

    Autoexec.bat in Me/NT/2000/XP

    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!

  2. #2
    So Unbanned DiGiTaIErRoR's Avatar
    Join Date
    Apr 1999
    Location
    /dev/null
    Posts
    4,111
    You could add a registry entry to run cmd.exe and del the file.

  3. #3

    Thread Starter
    Member
    Join Date
    Jul 2002
    Posts
    55
    But registry entries are loaded when Windows has fully loaded. When Windows has fully loaded you cannot delete index.dat.

  4. #4
    So Unbanned DiGiTaIErRoR's Avatar
    Join Date
    Apr 1999
    Location
    /dev/null
    Posts
    4,111
    Why do you want to delete it?

  5. #5

    Thread Starter
    Member
    Join Date
    Jul 2002
    Posts
    55
    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?

  6. #6
    So Unbanned DiGiTaIErRoR's Avatar
    Join Date
    Apr 1999
    Location
    /dev/null
    Posts
    4,111
    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.

  7. #7
    Black Cat JoshT's Avatar
    Join Date
    Nov 2000
    Location
    WNY, USA
    Posts
    4,032
    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.
    Josh
    Get these: Mozilla Opera OpenBSD
    I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.

  8. #8
    So Unbanned DiGiTaIErRoR's Avatar
    Join Date
    Apr 1999
    Location
    /dev/null
    Posts
    4,111
    I was able to delete all index.dat files on my comp except one that was a mere 80 kb.

  9. #9

    Thread Starter
    Member
    Join Date
    Jul 2002
    Posts
    55
    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

  10. #10
    So Unbanned DiGiTaIErRoR's Avatar
    Join Date
    Apr 1999
    Location
    /dev/null
    Posts
    4,111
    Mind sharing?

  11. #11

    Thread Starter
    Member
    Join Date
    Jul 2002
    Posts
    55
    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.

  12. #12
    So Unbanned DiGiTaIErRoR's Avatar
    Join Date
    Apr 1999
    Location
    /dev/null
    Posts
    4,111
    Windows ME sucks anyway.

  13. #13

    Thread Starter
    Member
    Join Date
    Jul 2002
    Posts
    55
    DiGiTaIErRoR, out of curiosity what is your version of Windows?

    Thanks

  14. #14
    So Unbanned DiGiTaIErRoR's Avatar
    Join Date
    Apr 1999
    Location
    /dev/null
    Posts
    4,111
    Win2k Advanced Server.

  15. #15
    Hyperactive Member mastermind94's Avatar
    Join Date
    Jun 2000
    Location
    Montréal, Canada
    Posts
    441
    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)

  16. #16
    Addicted Member
    Join Date
    Apr 2002
    Posts
    183
    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

  17. #17
    Next Of Kin baja_yu's Avatar
    Join Date
    Aug 2002
    Location
    /dev/root
    Posts
    5,989
    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

  18. #18
    New Member
    Join Date
    Apr 2004
    Posts
    2
    The following Registry key might be useful:
    HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run

    It runs tasks before Windows fully loads.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width