Files
powershell/Dennis_Scripts/TestDCopyFilesToDWFTP.ps1
2023-03-09 09:06:25 +01:00

11 lines
330 B
PowerShell

$dateStr = ("API.LOG.{0}" -f (Get-Date -Format 'yyyy-MM-dd.HH-mm'))
$path = Join-Path $env:TEMP $dateStr
$null = mkdir $path
Get-Item "D:\IFSBOSystem\Log\*.log*" | Copy-Item -Destination $path
& 'C:\Program Files\7-Zip\7z.exe' a -tzip "\\btyidr52ftp\d$\IFSBODATA\DW\$dateStr.zip" "$path\*.log*"
rmdir -Force $path -Recurse