Skip to content

Instantly share code, notes, and snippets.

@ninijay
Created October 19, 2016 12:02
Show Gist options
  • Save ninijay/52ff1c56258fd9705f3f821c8c091ba6 to your computer and use it in GitHub Desktop.
Save ninijay/52ff1c56258fd9705f3f821c8c091ba6 to your computer and use it in GitHub Desktop.
Windows 7 Desktop cleaner workaround
$targetdirectory = ""
$sourcedirectory = ""
if (!(Test-Path -path $targetdirectory)) {New-Item $targetdirectory -Type Directory}
Get-ChildItem -Path $sourcedirectory | % {
Copy-Item -Path $_.fullname -Destination $targetdirectory
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment