Skip to content

Instantly share code, notes, and snippets.

@dhcgn
Created December 16, 2023 11:26
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 dhcgn/ec2d414fc132160ff57fff55e7d0b9b0 to your computer and use it in GitHub Desktop.
Save dhcgn/ec2d414fc132160ff57fff55e7d0b9b0 to your computer and use it in GitHub Desktop.
Watch folder for JPGs and move them
$source = "C:\SFTP_Root"
$target = "G:\Meine Ablage\Bilder\Projekte\2023 Tanzaufführung\Generealprobe\LIVE"
for(){Write-Host "." -NoNewline; gci $source -Recurse -File -Include *.jpg | Move-Item -Destination $target -Verbose -ErrorAction SilentlyContinue; sleep -Seconds 1}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment