Batch file to perform start, run, %TEMP% and delete all





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}







9















looking for a way to perform the following:



Start > Run > "%TEMP% > Delete everything (skipping any conflicts).



so Far I have



@echo off
start %TEMP%
DEL *.*


I suppose I could use CD to get to the folder, the thing I'm wondering is if there are any instances where it cannot delete an a dialog box comes up, I want to skip these.



Thanks for the help!
Liam










share|improve this question





























    9















    looking for a way to perform the following:



    Start > Run > "%TEMP% > Delete everything (skipping any conflicts).



    so Far I have



    @echo off
    start %TEMP%
    DEL *.*


    I suppose I could use CD to get to the folder, the thing I'm wondering is if there are any instances where it cannot delete an a dialog box comes up, I want to skip these.



    Thanks for the help!
    Liam










    share|improve this question

























      9












      9








      9


      4






      looking for a way to perform the following:



      Start > Run > "%TEMP% > Delete everything (skipping any conflicts).



      so Far I have



      @echo off
      start %TEMP%
      DEL *.*


      I suppose I could use CD to get to the folder, the thing I'm wondering is if there are any instances where it cannot delete an a dialog box comes up, I want to skip these.



      Thanks for the help!
      Liam










      share|improve this question














      looking for a way to perform the following:



      Start > Run > "%TEMP% > Delete everything (skipping any conflicts).



      so Far I have



      @echo off
      start %TEMP%
      DEL *.*


      I suppose I could use CD to get to the folder, the thing I'm wondering is if there are any instances where it cannot delete an a dialog box comes up, I want to skip these.



      Thanks for the help!
      Liam







      batch-file






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked May 23 '12 at 9:10









      Liam CoatesLiam Coates

      1865718




      1865718
























          8 Answers
          8






          active

          oldest

          votes


















          21














          del won't trigger any dialogs or message boxes. You have a few problems, though:





          1. start will just open Explorer which would be useless. You need cd to change the working directory of your batch file (the /D is there so it also works when run from a different drive):



            cd /D %temp%



          2. You may want to delete directories as well:



            for /d %%D in (*) do rd /s /q "%%D"



          3. You need to skip the question for del and remove read-only files too:



            del /f /q *



          so you arrive at:



          @echo off
          cd /D %temp%
          for /d %%D in (*) do rd /s /q "%%D"
          del /f /q *





          share|improve this answer


























          • Thanks mate! Works a charm, can now schedule it weekly with task scheduler!

            – Liam Coates
            May 23 '12 at 9:41











          • Thanks for step by step explanation!!

            – Paritosh
            Jun 28 '13 at 6:02



















          2














          If you want to remove all the files in the %TEMP% folder you could just do this:



          del %TEMP%*.* /f /s /q


          That will remove everything, any file with any extension (*.*) and do the same for all sub-folders (/s), without prompting you for anything (/q), it will just do it, including read only files (/f).



          Hope this helps.






          share|improve this answer



















          • 1





            It won't remove directories, though.

            – Joey
            May 23 '12 at 10:21











          • @Joey True, your answer is better :)

            – Bali C
            May 23 '12 at 10:41





















          2














          The following batch commands are used to delete all your temp, recent and prefetch files on your System.



          Save the following code as "Clear.bat" on your local system



          *********START CODE************

          @ECHO OFF

          del /s /f /q %userprofile%Recent*.*

          del /s /f /q C:WindowsPrefetch*.*

          del /s /f /q C:WindowsTemp*.*

          del /s /f /q %USERPROFILE%appdatalocaltemp*.*


          /Below command to Show the folder after deleted files

          Explorer %userprofile%Recent

          Explorer C:WindowsPrefetch

          Explorer C:WindowsTemp

          Explorer %USERPROFILE%appdatalocaltemp


          *********END CODE************





          share|improve this answer

































            1














            cd C:Users%username%AppDataLocal
            rmdir /S /Q Temp



            del C:WindowsPrefetch*.* /Q



            del C:WindowsTemp*.* /Q



            del C:Users%username%AppDataRoamingMicrosoftWindowsRecent Items*.* /Q
            pause






            share|improve this answer































              1














              @echo off
              RD %TEMP%. /S /Q

              ::pause
              explorer %temp%


              This batch can run from anywhere.
              RD stands for Remove Directory but this can remove both folders and files which available to delete.






              share|improve this answer

































                1














                @echo off    
                del /s /f /q %windir%temp*.*
                rd /s /q %windir%temp
                md %windir%temp
                del /s /f /q %windir%Prefetch*.*
                rd /s /q %windir%Prefetch
                md %windir%Prefetch
                del /s /f /q %windir%system32dllcache*.*
                rd /s /q %windir%system32dllcache
                md %windir%system32dllcache
                del /s /f /q "%SysteDrive%Temp"*.*
                rd /s /q "%SysteDrive%Temp"
                md "%SysteDrive%Temp"
                del /s /f /q %temp%*.*
                rd /s /q %temp%
                md %temp%
                del /s /f /q "%USERPROFILE%Local SettingsHistory"*.*
                rd /s /q "%USERPROFILE%Local SettingsHistory"
                md "%USERPROFILE%Local SettingsHistory"
                del /s /f /q "%USERPROFILE%Local SettingsTemporary Internet Files"*.*
                rd /s /q "%USERPROFILE%Local SettingsTemporary Internet Files"
                md "%USERPROFILE%Local SettingsTemporary Internet Files"
                del /s /f /q "%USERPROFILE%Local SettingsTemp"*.*
                rd /s /q "%USERPROFILE%Local SettingsTemp"
                md "%USERPROFILE%Local SettingsTemp"
                del /s /f /q "%USERPROFILE%Recent"*.*
                rd /s /q "%USERPROFILE%Recent"
                md "%USERPROFILE%Recent"
                del /s /f /q "%USERPROFILE%Cookies"*.*
                rd /s /q "%USERPROFILE%Cookies"
                md "%USERPROFILE%Cookies"





                share|improve this answer


























                • Thank me after... Enjoy!! :)

                  – yeho
                  Feb 11 '18 at 14:11






                • 1





                  Welcome to Stack Overflow, please review: stackoverflow.com/help/how-to-answer

                  – Daniel
                  Feb 11 '18 at 14:32



















                0














                just use;
                del /f /q C:Users*username*AppDataLocaltemp
                and it will work
                jou'll delete the whole map then but windows will re-make it






                share|improve this answer
























                • format your answer

                  – Apurva
                  Mar 12 '15 at 20:28



















                -1














                @echo off
                del /s /f /q c:windowstemp*.*
                rd /s /q c:windowstemp
                md c:windowstemp
                del /s /f /q C:WINDOWSPrefetch
                del /s /f /q %temp%*.*
                rd /s /q %temp%
                md %temp%
                deltree /y c:windowstempor~1
                deltree /y c:windowstemp
                deltree /y c:windowstmp
                deltree /y c:windowsff*.tmp
                deltree /y c:windowshistory
                deltree /y c:windowscookies
                deltree /y c:windowsrecent
                deltree /y c:windowsspoolprinters
                del c:WIN386.SWP
                cls





                share|improve this answer
























                  protected by Community Dec 7 '18 at 2:49



                  Thank you for your interest in this question.
                  Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).



                  Would you like to answer one of these unanswered questions instead?














                  8 Answers
                  8






                  active

                  oldest

                  votes








                  8 Answers
                  8






                  active

                  oldest

                  votes









                  active

                  oldest

                  votes






                  active

                  oldest

                  votes









                  21














                  del won't trigger any dialogs or message boxes. You have a few problems, though:





                  1. start will just open Explorer which would be useless. You need cd to change the working directory of your batch file (the /D is there so it also works when run from a different drive):



                    cd /D %temp%



                  2. You may want to delete directories as well:



                    for /d %%D in (*) do rd /s /q "%%D"



                  3. You need to skip the question for del and remove read-only files too:



                    del /f /q *



                  so you arrive at:



                  @echo off
                  cd /D %temp%
                  for /d %%D in (*) do rd /s /q "%%D"
                  del /f /q *





                  share|improve this answer


























                  • Thanks mate! Works a charm, can now schedule it weekly with task scheduler!

                    – Liam Coates
                    May 23 '12 at 9:41











                  • Thanks for step by step explanation!!

                    – Paritosh
                    Jun 28 '13 at 6:02
















                  21














                  del won't trigger any dialogs or message boxes. You have a few problems, though:





                  1. start will just open Explorer which would be useless. You need cd to change the working directory of your batch file (the /D is there so it also works when run from a different drive):



                    cd /D %temp%



                  2. You may want to delete directories as well:



                    for /d %%D in (*) do rd /s /q "%%D"



                  3. You need to skip the question for del and remove read-only files too:



                    del /f /q *



                  so you arrive at:



                  @echo off
                  cd /D %temp%
                  for /d %%D in (*) do rd /s /q "%%D"
                  del /f /q *





                  share|improve this answer


























                  • Thanks mate! Works a charm, can now schedule it weekly with task scheduler!

                    – Liam Coates
                    May 23 '12 at 9:41











                  • Thanks for step by step explanation!!

                    – Paritosh
                    Jun 28 '13 at 6:02














                  21












                  21








                  21







                  del won't trigger any dialogs or message boxes. You have a few problems, though:





                  1. start will just open Explorer which would be useless. You need cd to change the working directory of your batch file (the /D is there so it also works when run from a different drive):



                    cd /D %temp%



                  2. You may want to delete directories as well:



                    for /d %%D in (*) do rd /s /q "%%D"



                  3. You need to skip the question for del and remove read-only files too:



                    del /f /q *



                  so you arrive at:



                  @echo off
                  cd /D %temp%
                  for /d %%D in (*) do rd /s /q "%%D"
                  del /f /q *





                  share|improve this answer















                  del won't trigger any dialogs or message boxes. You have a few problems, though:





                  1. start will just open Explorer which would be useless. You need cd to change the working directory of your batch file (the /D is there so it also works when run from a different drive):



                    cd /D %temp%



                  2. You may want to delete directories as well:



                    for /d %%D in (*) do rd /s /q "%%D"



                  3. You need to skip the question for del and remove read-only files too:



                    del /f /q *



                  so you arrive at:



                  @echo off
                  cd /D %temp%
                  for /d %%D in (*) do rd /s /q "%%D"
                  del /f /q *






                  share|improve this answer














                  share|improve this answer



                  share|improve this answer








                  edited Mar 12 '18 at 8:11

























                  answered May 23 '12 at 9:23









                  JoeyJoey

                  268k66574606




                  268k66574606













                  • Thanks mate! Works a charm, can now schedule it weekly with task scheduler!

                    – Liam Coates
                    May 23 '12 at 9:41











                  • Thanks for step by step explanation!!

                    – Paritosh
                    Jun 28 '13 at 6:02



















                  • Thanks mate! Works a charm, can now schedule it weekly with task scheduler!

                    – Liam Coates
                    May 23 '12 at 9:41











                  • Thanks for step by step explanation!!

                    – Paritosh
                    Jun 28 '13 at 6:02

















                  Thanks mate! Works a charm, can now schedule it weekly with task scheduler!

                  – Liam Coates
                  May 23 '12 at 9:41





                  Thanks mate! Works a charm, can now schedule it weekly with task scheduler!

                  – Liam Coates
                  May 23 '12 at 9:41













                  Thanks for step by step explanation!!

                  – Paritosh
                  Jun 28 '13 at 6:02





                  Thanks for step by step explanation!!

                  – Paritosh
                  Jun 28 '13 at 6:02













                  2














                  If you want to remove all the files in the %TEMP% folder you could just do this:



                  del %TEMP%*.* /f /s /q


                  That will remove everything, any file with any extension (*.*) and do the same for all sub-folders (/s), without prompting you for anything (/q), it will just do it, including read only files (/f).



                  Hope this helps.






                  share|improve this answer



















                  • 1





                    It won't remove directories, though.

                    – Joey
                    May 23 '12 at 10:21











                  • @Joey True, your answer is better :)

                    – Bali C
                    May 23 '12 at 10:41


















                  2














                  If you want to remove all the files in the %TEMP% folder you could just do this:



                  del %TEMP%*.* /f /s /q


                  That will remove everything, any file with any extension (*.*) and do the same for all sub-folders (/s), without prompting you for anything (/q), it will just do it, including read only files (/f).



                  Hope this helps.






                  share|improve this answer



















                  • 1





                    It won't remove directories, though.

                    – Joey
                    May 23 '12 at 10:21











                  • @Joey True, your answer is better :)

                    – Bali C
                    May 23 '12 at 10:41
















                  2












                  2








                  2







                  If you want to remove all the files in the %TEMP% folder you could just do this:



                  del %TEMP%*.* /f /s /q


                  That will remove everything, any file with any extension (*.*) and do the same for all sub-folders (/s), without prompting you for anything (/q), it will just do it, including read only files (/f).



                  Hope this helps.






                  share|improve this answer













                  If you want to remove all the files in the %TEMP% folder you could just do this:



                  del %TEMP%*.* /f /s /q


                  That will remove everything, any file with any extension (*.*) and do the same for all sub-folders (/s), without prompting you for anything (/q), it will just do it, including read only files (/f).



                  Hope this helps.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered May 23 '12 at 9:30









                  Bali CBali C

                  23k3294136




                  23k3294136








                  • 1





                    It won't remove directories, though.

                    – Joey
                    May 23 '12 at 10:21











                  • @Joey True, your answer is better :)

                    – Bali C
                    May 23 '12 at 10:41
















                  • 1





                    It won't remove directories, though.

                    – Joey
                    May 23 '12 at 10:21











                  • @Joey True, your answer is better :)

                    – Bali C
                    May 23 '12 at 10:41










                  1




                  1





                  It won't remove directories, though.

                  – Joey
                  May 23 '12 at 10:21





                  It won't remove directories, though.

                  – Joey
                  May 23 '12 at 10:21













                  @Joey True, your answer is better :)

                  – Bali C
                  May 23 '12 at 10:41







                  @Joey True, your answer is better :)

                  – Bali C
                  May 23 '12 at 10:41













                  2














                  The following batch commands are used to delete all your temp, recent and prefetch files on your System.



                  Save the following code as "Clear.bat" on your local system



                  *********START CODE************

                  @ECHO OFF

                  del /s /f /q %userprofile%Recent*.*

                  del /s /f /q C:WindowsPrefetch*.*

                  del /s /f /q C:WindowsTemp*.*

                  del /s /f /q %USERPROFILE%appdatalocaltemp*.*


                  /Below command to Show the folder after deleted files

                  Explorer %userprofile%Recent

                  Explorer C:WindowsPrefetch

                  Explorer C:WindowsTemp

                  Explorer %USERPROFILE%appdatalocaltemp


                  *********END CODE************





                  share|improve this answer






























                    2














                    The following batch commands are used to delete all your temp, recent and prefetch files on your System.



                    Save the following code as "Clear.bat" on your local system



                    *********START CODE************

                    @ECHO OFF

                    del /s /f /q %userprofile%Recent*.*

                    del /s /f /q C:WindowsPrefetch*.*

                    del /s /f /q C:WindowsTemp*.*

                    del /s /f /q %USERPROFILE%appdatalocaltemp*.*


                    /Below command to Show the folder after deleted files

                    Explorer %userprofile%Recent

                    Explorer C:WindowsPrefetch

                    Explorer C:WindowsTemp

                    Explorer %USERPROFILE%appdatalocaltemp


                    *********END CODE************





                    share|improve this answer




























                      2












                      2








                      2







                      The following batch commands are used to delete all your temp, recent and prefetch files on your System.



                      Save the following code as "Clear.bat" on your local system



                      *********START CODE************

                      @ECHO OFF

                      del /s /f /q %userprofile%Recent*.*

                      del /s /f /q C:WindowsPrefetch*.*

                      del /s /f /q C:WindowsTemp*.*

                      del /s /f /q %USERPROFILE%appdatalocaltemp*.*


                      /Below command to Show the folder after deleted files

                      Explorer %userprofile%Recent

                      Explorer C:WindowsPrefetch

                      Explorer C:WindowsTemp

                      Explorer %USERPROFILE%appdatalocaltemp


                      *********END CODE************





                      share|improve this answer















                      The following batch commands are used to delete all your temp, recent and prefetch files on your System.



                      Save the following code as "Clear.bat" on your local system



                      *********START CODE************

                      @ECHO OFF

                      del /s /f /q %userprofile%Recent*.*

                      del /s /f /q C:WindowsPrefetch*.*

                      del /s /f /q C:WindowsTemp*.*

                      del /s /f /q %USERPROFILE%appdatalocaltemp*.*


                      /Below command to Show the folder after deleted files

                      Explorer %userprofile%Recent

                      Explorer C:WindowsPrefetch

                      Explorer C:WindowsTemp

                      Explorer %USERPROFILE%appdatalocaltemp


                      *********END CODE************






                      share|improve this answer














                      share|improve this answer



                      share|improve this answer








                      edited May 13 '17 at 10:55









                      amarnath

                      76132021




                      76132021










                      answered May 13 '17 at 7:33









                      Ramanan KRamanan K

                      211




                      211























                          1














                          cd C:Users%username%AppDataLocal
                          rmdir /S /Q Temp



                          del C:WindowsPrefetch*.* /Q



                          del C:WindowsTemp*.* /Q



                          del C:Users%username%AppDataRoamingMicrosoftWindowsRecent Items*.* /Q
                          pause






                          share|improve this answer




























                            1














                            cd C:Users%username%AppDataLocal
                            rmdir /S /Q Temp



                            del C:WindowsPrefetch*.* /Q



                            del C:WindowsTemp*.* /Q



                            del C:Users%username%AppDataRoamingMicrosoftWindowsRecent Items*.* /Q
                            pause






                            share|improve this answer


























                              1












                              1








                              1







                              cd C:Users%username%AppDataLocal
                              rmdir /S /Q Temp



                              del C:WindowsPrefetch*.* /Q



                              del C:WindowsTemp*.* /Q



                              del C:Users%username%AppDataRoamingMicrosoftWindowsRecent Items*.* /Q
                              pause






                              share|improve this answer













                              cd C:Users%username%AppDataLocal
                              rmdir /S /Q Temp



                              del C:WindowsPrefetch*.* /Q



                              del C:WindowsTemp*.* /Q



                              del C:Users%username%AppDataRoamingMicrosoftWindowsRecent Items*.* /Q
                              pause







                              share|improve this answer












                              share|improve this answer



                              share|improve this answer










                              answered Jan 31 '15 at 23:08









                              pepivladpepivlad

                              111




                              111























                                  1














                                  @echo off
                                  RD %TEMP%. /S /Q

                                  ::pause
                                  explorer %temp%


                                  This batch can run from anywhere.
                                  RD stands for Remove Directory but this can remove both folders and files which available to delete.






                                  share|improve this answer






























                                    1














                                    @echo off
                                    RD %TEMP%. /S /Q

                                    ::pause
                                    explorer %temp%


                                    This batch can run from anywhere.
                                    RD stands for Remove Directory but this can remove both folders and files which available to delete.






                                    share|improve this answer




























                                      1












                                      1








                                      1







                                      @echo off
                                      RD %TEMP%. /S /Q

                                      ::pause
                                      explorer %temp%


                                      This batch can run from anywhere.
                                      RD stands for Remove Directory but this can remove both folders and files which available to delete.






                                      share|improve this answer















                                      @echo off
                                      RD %TEMP%. /S /Q

                                      ::pause
                                      explorer %temp%


                                      This batch can run from anywhere.
                                      RD stands for Remove Directory but this can remove both folders and files which available to delete.







                                      share|improve this answer














                                      share|improve this answer



                                      share|improve this answer








                                      edited Jan 31 '17 at 5:15

























                                      answered Jan 31 '17 at 5:02









                                      Na NonthasenNa Nonthasen

                                      5513




                                      5513























                                          1














                                          @echo off    
                                          del /s /f /q %windir%temp*.*
                                          rd /s /q %windir%temp
                                          md %windir%temp
                                          del /s /f /q %windir%Prefetch*.*
                                          rd /s /q %windir%Prefetch
                                          md %windir%Prefetch
                                          del /s /f /q %windir%system32dllcache*.*
                                          rd /s /q %windir%system32dllcache
                                          md %windir%system32dllcache
                                          del /s /f /q "%SysteDrive%Temp"*.*
                                          rd /s /q "%SysteDrive%Temp"
                                          md "%SysteDrive%Temp"
                                          del /s /f /q %temp%*.*
                                          rd /s /q %temp%
                                          md %temp%
                                          del /s /f /q "%USERPROFILE%Local SettingsHistory"*.*
                                          rd /s /q "%USERPROFILE%Local SettingsHistory"
                                          md "%USERPROFILE%Local SettingsHistory"
                                          del /s /f /q "%USERPROFILE%Local SettingsTemporary Internet Files"*.*
                                          rd /s /q "%USERPROFILE%Local SettingsTemporary Internet Files"
                                          md "%USERPROFILE%Local SettingsTemporary Internet Files"
                                          del /s /f /q "%USERPROFILE%Local SettingsTemp"*.*
                                          rd /s /q "%USERPROFILE%Local SettingsTemp"
                                          md "%USERPROFILE%Local SettingsTemp"
                                          del /s /f /q "%USERPROFILE%Recent"*.*
                                          rd /s /q "%USERPROFILE%Recent"
                                          md "%USERPROFILE%Recent"
                                          del /s /f /q "%USERPROFILE%Cookies"*.*
                                          rd /s /q "%USERPROFILE%Cookies"
                                          md "%USERPROFILE%Cookies"





                                          share|improve this answer


























                                          • Thank me after... Enjoy!! :)

                                            – yeho
                                            Feb 11 '18 at 14:11






                                          • 1





                                            Welcome to Stack Overflow, please review: stackoverflow.com/help/how-to-answer

                                            – Daniel
                                            Feb 11 '18 at 14:32
















                                          1














                                          @echo off    
                                          del /s /f /q %windir%temp*.*
                                          rd /s /q %windir%temp
                                          md %windir%temp
                                          del /s /f /q %windir%Prefetch*.*
                                          rd /s /q %windir%Prefetch
                                          md %windir%Prefetch
                                          del /s /f /q %windir%system32dllcache*.*
                                          rd /s /q %windir%system32dllcache
                                          md %windir%system32dllcache
                                          del /s /f /q "%SysteDrive%Temp"*.*
                                          rd /s /q "%SysteDrive%Temp"
                                          md "%SysteDrive%Temp"
                                          del /s /f /q %temp%*.*
                                          rd /s /q %temp%
                                          md %temp%
                                          del /s /f /q "%USERPROFILE%Local SettingsHistory"*.*
                                          rd /s /q "%USERPROFILE%Local SettingsHistory"
                                          md "%USERPROFILE%Local SettingsHistory"
                                          del /s /f /q "%USERPROFILE%Local SettingsTemporary Internet Files"*.*
                                          rd /s /q "%USERPROFILE%Local SettingsTemporary Internet Files"
                                          md "%USERPROFILE%Local SettingsTemporary Internet Files"
                                          del /s /f /q "%USERPROFILE%Local SettingsTemp"*.*
                                          rd /s /q "%USERPROFILE%Local SettingsTemp"
                                          md "%USERPROFILE%Local SettingsTemp"
                                          del /s /f /q "%USERPROFILE%Recent"*.*
                                          rd /s /q "%USERPROFILE%Recent"
                                          md "%USERPROFILE%Recent"
                                          del /s /f /q "%USERPROFILE%Cookies"*.*
                                          rd /s /q "%USERPROFILE%Cookies"
                                          md "%USERPROFILE%Cookies"





                                          share|improve this answer


























                                          • Thank me after... Enjoy!! :)

                                            – yeho
                                            Feb 11 '18 at 14:11






                                          • 1





                                            Welcome to Stack Overflow, please review: stackoverflow.com/help/how-to-answer

                                            – Daniel
                                            Feb 11 '18 at 14:32














                                          1












                                          1








                                          1







                                          @echo off    
                                          del /s /f /q %windir%temp*.*
                                          rd /s /q %windir%temp
                                          md %windir%temp
                                          del /s /f /q %windir%Prefetch*.*
                                          rd /s /q %windir%Prefetch
                                          md %windir%Prefetch
                                          del /s /f /q %windir%system32dllcache*.*
                                          rd /s /q %windir%system32dllcache
                                          md %windir%system32dllcache
                                          del /s /f /q "%SysteDrive%Temp"*.*
                                          rd /s /q "%SysteDrive%Temp"
                                          md "%SysteDrive%Temp"
                                          del /s /f /q %temp%*.*
                                          rd /s /q %temp%
                                          md %temp%
                                          del /s /f /q "%USERPROFILE%Local SettingsHistory"*.*
                                          rd /s /q "%USERPROFILE%Local SettingsHistory"
                                          md "%USERPROFILE%Local SettingsHistory"
                                          del /s /f /q "%USERPROFILE%Local SettingsTemporary Internet Files"*.*
                                          rd /s /q "%USERPROFILE%Local SettingsTemporary Internet Files"
                                          md "%USERPROFILE%Local SettingsTemporary Internet Files"
                                          del /s /f /q "%USERPROFILE%Local SettingsTemp"*.*
                                          rd /s /q "%USERPROFILE%Local SettingsTemp"
                                          md "%USERPROFILE%Local SettingsTemp"
                                          del /s /f /q "%USERPROFILE%Recent"*.*
                                          rd /s /q "%USERPROFILE%Recent"
                                          md "%USERPROFILE%Recent"
                                          del /s /f /q "%USERPROFILE%Cookies"*.*
                                          rd /s /q "%USERPROFILE%Cookies"
                                          md "%USERPROFILE%Cookies"





                                          share|improve this answer















                                          @echo off    
                                          del /s /f /q %windir%temp*.*
                                          rd /s /q %windir%temp
                                          md %windir%temp
                                          del /s /f /q %windir%Prefetch*.*
                                          rd /s /q %windir%Prefetch
                                          md %windir%Prefetch
                                          del /s /f /q %windir%system32dllcache*.*
                                          rd /s /q %windir%system32dllcache
                                          md %windir%system32dllcache
                                          del /s /f /q "%SysteDrive%Temp"*.*
                                          rd /s /q "%SysteDrive%Temp"
                                          md "%SysteDrive%Temp"
                                          del /s /f /q %temp%*.*
                                          rd /s /q %temp%
                                          md %temp%
                                          del /s /f /q "%USERPROFILE%Local SettingsHistory"*.*
                                          rd /s /q "%USERPROFILE%Local SettingsHistory"
                                          md "%USERPROFILE%Local SettingsHistory"
                                          del /s /f /q "%USERPROFILE%Local SettingsTemporary Internet Files"*.*
                                          rd /s /q "%USERPROFILE%Local SettingsTemporary Internet Files"
                                          md "%USERPROFILE%Local SettingsTemporary Internet Files"
                                          del /s /f /q "%USERPROFILE%Local SettingsTemp"*.*
                                          rd /s /q "%USERPROFILE%Local SettingsTemp"
                                          md "%USERPROFILE%Local SettingsTemp"
                                          del /s /f /q "%USERPROFILE%Recent"*.*
                                          rd /s /q "%USERPROFILE%Recent"
                                          md "%USERPROFILE%Recent"
                                          del /s /f /q "%USERPROFILE%Cookies"*.*
                                          rd /s /q "%USERPROFILE%Cookies"
                                          md "%USERPROFILE%Cookies"






                                          share|improve this answer














                                          share|improve this answer



                                          share|improve this answer








                                          edited Feb 11 '18 at 16:39









                                          uzi

                                          3,98711122




                                          3,98711122










                                          answered Feb 11 '18 at 14:09









                                          yehoyeho

                                          112




                                          112













                                          • Thank me after... Enjoy!! :)

                                            – yeho
                                            Feb 11 '18 at 14:11






                                          • 1





                                            Welcome to Stack Overflow, please review: stackoverflow.com/help/how-to-answer

                                            – Daniel
                                            Feb 11 '18 at 14:32



















                                          • Thank me after... Enjoy!! :)

                                            – yeho
                                            Feb 11 '18 at 14:11






                                          • 1





                                            Welcome to Stack Overflow, please review: stackoverflow.com/help/how-to-answer

                                            – Daniel
                                            Feb 11 '18 at 14:32

















                                          Thank me after... Enjoy!! :)

                                          – yeho
                                          Feb 11 '18 at 14:11





                                          Thank me after... Enjoy!! :)

                                          – yeho
                                          Feb 11 '18 at 14:11




                                          1




                                          1





                                          Welcome to Stack Overflow, please review: stackoverflow.com/help/how-to-answer

                                          – Daniel
                                          Feb 11 '18 at 14:32





                                          Welcome to Stack Overflow, please review: stackoverflow.com/help/how-to-answer

                                          – Daniel
                                          Feb 11 '18 at 14:32











                                          0














                                          just use;
                                          del /f /q C:Users*username*AppDataLocaltemp
                                          and it will work
                                          jou'll delete the whole map then but windows will re-make it






                                          share|improve this answer
























                                          • format your answer

                                            – Apurva
                                            Mar 12 '15 at 20:28
















                                          0














                                          just use;
                                          del /f /q C:Users*username*AppDataLocaltemp
                                          and it will work
                                          jou'll delete the whole map then but windows will re-make it






                                          share|improve this answer
























                                          • format your answer

                                            – Apurva
                                            Mar 12 '15 at 20:28














                                          0












                                          0








                                          0







                                          just use;
                                          del /f /q C:Users*username*AppDataLocaltemp
                                          and it will work
                                          jou'll delete the whole map then but windows will re-make it






                                          share|improve this answer













                                          just use;
                                          del /f /q C:Users*username*AppDataLocaltemp
                                          and it will work
                                          jou'll delete the whole map then but windows will re-make it







                                          share|improve this answer












                                          share|improve this answer



                                          share|improve this answer










                                          answered Mar 12 '15 at 20:07









                                          Ferre VekemansFerre Vekemans

                                          1




                                          1













                                          • format your answer

                                            – Apurva
                                            Mar 12 '15 at 20:28



















                                          • format your answer

                                            – Apurva
                                            Mar 12 '15 at 20:28

















                                          format your answer

                                          – Apurva
                                          Mar 12 '15 at 20:28





                                          format your answer

                                          – Apurva
                                          Mar 12 '15 at 20:28











                                          -1














                                          @echo off
                                          del /s /f /q c:windowstemp*.*
                                          rd /s /q c:windowstemp
                                          md c:windowstemp
                                          del /s /f /q C:WINDOWSPrefetch
                                          del /s /f /q %temp%*.*
                                          rd /s /q %temp%
                                          md %temp%
                                          deltree /y c:windowstempor~1
                                          deltree /y c:windowstemp
                                          deltree /y c:windowstmp
                                          deltree /y c:windowsff*.tmp
                                          deltree /y c:windowshistory
                                          deltree /y c:windowscookies
                                          deltree /y c:windowsrecent
                                          deltree /y c:windowsspoolprinters
                                          del c:WIN386.SWP
                                          cls





                                          share|improve this answer






























                                            -1














                                            @echo off
                                            del /s /f /q c:windowstemp*.*
                                            rd /s /q c:windowstemp
                                            md c:windowstemp
                                            del /s /f /q C:WINDOWSPrefetch
                                            del /s /f /q %temp%*.*
                                            rd /s /q %temp%
                                            md %temp%
                                            deltree /y c:windowstempor~1
                                            deltree /y c:windowstemp
                                            deltree /y c:windowstmp
                                            deltree /y c:windowsff*.tmp
                                            deltree /y c:windowshistory
                                            deltree /y c:windowscookies
                                            deltree /y c:windowsrecent
                                            deltree /y c:windowsspoolprinters
                                            del c:WIN386.SWP
                                            cls





                                            share|improve this answer




























                                              -1












                                              -1








                                              -1







                                              @echo off
                                              del /s /f /q c:windowstemp*.*
                                              rd /s /q c:windowstemp
                                              md c:windowstemp
                                              del /s /f /q C:WINDOWSPrefetch
                                              del /s /f /q %temp%*.*
                                              rd /s /q %temp%
                                              md %temp%
                                              deltree /y c:windowstempor~1
                                              deltree /y c:windowstemp
                                              deltree /y c:windowstmp
                                              deltree /y c:windowsff*.tmp
                                              deltree /y c:windowshistory
                                              deltree /y c:windowscookies
                                              deltree /y c:windowsrecent
                                              deltree /y c:windowsspoolprinters
                                              del c:WIN386.SWP
                                              cls





                                              share|improve this answer















                                              @echo off
                                              del /s /f /q c:windowstemp*.*
                                              rd /s /q c:windowstemp
                                              md c:windowstemp
                                              del /s /f /q C:WINDOWSPrefetch
                                              del /s /f /q %temp%*.*
                                              rd /s /q %temp%
                                              md %temp%
                                              deltree /y c:windowstempor~1
                                              deltree /y c:windowstemp
                                              deltree /y c:windowstmp
                                              deltree /y c:windowsff*.tmp
                                              deltree /y c:windowshistory
                                              deltree /y c:windowscookies
                                              deltree /y c:windowsrecent
                                              deltree /y c:windowsspoolprinters
                                              del c:WIN386.SWP
                                              cls






                                              share|improve this answer














                                              share|improve this answer



                                              share|improve this answer








                                              edited Nov 16 '18 at 15:05









                                              FGM

                                              2,27412323




                                              2,27412323










                                              answered Nov 16 '18 at 13:10









                                              Syed Masum Al HasanSyed Masum Al Hasan

                                              1




                                              1

















                                                  protected by Community Dec 7 '18 at 2:49



                                                  Thank you for your interest in this question.
                                                  Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).



                                                  Would you like to answer one of these unanswered questions instead?



                                                  Popular posts from this blog

                                                  The Sandy Post

                                                  Danny Elfman

                                                  Pages that link to "Head v. Amoskeag Manufacturing Co."