Home / HomePage / Scripts / CMD one - liners

CMD one - liners


Some one-liners.
  • for /f "tokens=*" %a in ('dir "C:\Documents and Settings\*." /b') do ECHO del /q "C:\Documents and Settings\%a\Local Settings\Temp\*.*"
    • Deletes all files in c:\Documents and Settings\*\Local Settings\Temp (for every user who has a profile on the system). There is an ECHO statement in there for testing. once you have the command doing what you want it to do, remove this. Consider removing the /q argument from the DEL command if you're still a little worried.
  •  
    •  

    Post a comment

    Your Name or E-mail ID (mandatory)

     



     RSS of this page