Skip to content

Instantly share code, notes, and snippets.

@OdaShinsuke
Created April 12, 2012 03:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save OdaShinsuke/2364459 to your computer and use it in GitHub Desktop.
Save OdaShinsuke/2364459 to your computer and use it in GitHub Desktop.
作業してる感
Write-Host "Backup!"
Write-Host "0% * * * * * * * * * * 100%"
while ($true) {
Get-ChildItem | % {
$path = $_.FullName
Write-Host "Backup File:$path starting ... "
for ($count = 1; $count -le 20; ++$count) {
$ran = Get-Random
sleep -m ($count * ($ran % 30))
Write-Host -NoNewLine "* "
}
Write-Host ""
Write-Host "done:$path"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment