1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

Running Batch file before startup

Discussion in 'DOS/Other' started by iOXeR, Jan 29, 2005.

Thread Status:
Not open for further replies.
Advertisement
  1. iOXeR

    iOXeR Thread Starter

    Joined:
    Jan 22, 2005
    Messages:
    96
    I want to run a batch file that will run before startup to delete index.dat everytime I logon. How would you recommend doing this?
     
  2. ohheck

    ohheck

    Joined:
    Jan 5, 2003
    Messages:
    1,275
  3. iOXeR

    iOXeR Thread Starter

    Joined:
    Jan 22, 2005
    Messages:
    96
    I know how to delete I just don't know how to delete it before the OS says that it's not deleteable. I don't really know if this is possible, but I guess I can use that program.
     
  4. teruzzi

    teruzzi

    Joined:
    Jan 29, 2005
    Messages:
    11
    Hello, I think that you CAN'T delete it for the logged user while still in use. You can delete it for other users (not logged). Try with safe mode (or command console) if really need to delete it.

    Ciao
    Maurizio
     
  5. iOXeR

    iOXeR Thread Starter

    Joined:
    Jan 22, 2005
    Messages:
    96
    Thanks for the replies. I really didn't think it would work, but I thought I might try seeing as Spybot and adaware can do this.
     
  6. ohheck

    ohheck

    Joined:
    Jan 5, 2003
    Messages:
    1,275
    try this:
    copy and paste the following, name it delindex.reg:
    -------------------------------------
    Windows Registry Editor Version 5.00

    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce]
    "del"="%ComSpec% /c del /s /f /q \"C:\\Documents and Settings\\x\\index.dat\""

    ------------------------------------------
    ! change "X" to your username / location of index.dat !

    paste delindex.reg to c:\

    make a *.bat file with this in it:
    -----------------------------------------
    RegEdit.Exe /S "c:\delindex.Reg"
    --------------------------------------
    everytime you want to delete index.dat just double click the bat file and reboot.

    ps - Index.dat Suite will be able to delete it and can even create an html
    of the entire contents of your index.dat---
     
  7. Sponsor

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 733,556 other people just like you!

Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/324715

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice