Anlage des Repos
This commit is contained in:
10
test/Dateien_Verschieben.ps1
Normal file
10
test/Dateien_Verschieben.ps1
Normal file
@@ -0,0 +1,10 @@
|
||||
Set-Variable -Name QuellPfad -Value "\\192.168.10.53\ftp\WebFrontEndVCL\WinSped_Export" -Scope Script
|
||||
Set-Variable -Name ZielPfad -Value "\\dd-sto01\dd-sto01-a2\FTP\DD - Kunden\Vetra\WinSped_Export" -Scope Script
|
||||
|
||||
$Dateien = Get-ChildItem –Path "$QuellPfad" -Include *.xml | where-object {$_.lastwritetime -lt (get-date).addminutes(-3)}
|
||||
|
||||
FOREACH ($Datei in $Dateien)
|
||||
{
|
||||
Write-Host "Verschiebe Datei $Datei"
|
||||
$Datei | Move-Item -Destination $ZielPfad -Force
|
||||
}
|
||||
Reference in New Issue
Block a user