Search UandiStar

1

how to create a batch file that will delete temp internet files?

  • Ravva Vamsi
  • Share



  • Question:-
    ------------------------------------------------------------------------------------------------------------
    Does anyone know how to create a batch file that will delete temp internet files?
    I have a lot of machines I need to do this on. I already have a way to delete the index.dat files, but I also need to empty the temp, history, and temporary internet files.
    Can someone help, plz?
    ------------------------------------------------------------------------------------------------------------

    Answer:-
    For Winows 2k, Xp and 2003, for NT, 9x, Me:
    Open Notepad and enter the following:
    -----------------------------------------------------------
    cd\
    cd C:\Documents and Settings\$username$\Local Settings\
    del /Q Temporary Internet Files
    echo Deleting Files
    echo File Deleted
    mkdir Temporary Internet Files
    exit
    -----------------------------------------------------------
    Replace $username$ with the Account names used on the machine...
    For deleting history and Temp, just change Temporary Internet Files for History or Temp.
    And save the file as delete.bat or whatever you wish Should work

    For Any Windows like 7,vista..
    Open NotePad and Paste the Following Code:
    -----------------------------------------------------------
    cd\ 
    cd %temp%
    ECHO Y | DEL *.*
    echo Deleting Files 
    echo File Deleted 
    exit
    -----------------------------------------------------------
    and save it as delTemp.bat and Run the file , it will delete all temp files Safely
    I think You Like this Post!!

    Any Comments are encouraged ...

    1 Responses to “how to create a batch file that will delete temp internet files?”

    Post a Comment

    Add your valuable comment here, ask any questions about this post,
    Share your opinions here.
    Dont write any Phone numbers in comment...


    Subscribe