posted 26/07/09

Clean-Temp function

By Fredrik Wall

I’m working on some functions that can help when
working with installation and MSI files.

This one is the first one.

function Clean-Temp {
$myTemp = "$Env:temp"
get-Childitem $myTemp | remove-Item -recurse -force
}

This function deletes everything in the current users temp folder.

No high tech, but nice to have!

 

Related posts:

  1. Clean Temp Function (Updated)
  2. Clean-Temp
  3. How to create 1 to 2000 or more temp files
  4. Function of the day – Move UserFolders
  5. Updated functions


Add Comment

Name (Required)

E-mail (Required)

Website

Comment (Required)