pinguindell, в пакетных файлах нет встроенных средств для создания архивов. Посему лучшим вариантом из встроенных средств будет использование PowerShell, наподобие:
Код:

Add-Type -AssemblyName 'System.IO.Compression.FileSystem'
$sFileName = 'Презентация.pptx'
$sSourceFolder = 'T:\Откуда'
$sDestFolder = [System.IO.Path]::Combine([System.Environment]::GetFolderPath('Desktop'), 'Куда')
$sSourceFileName = [System.IO.Path]::Combine($sSourceFolder, $sFileName)
$sDestFileName = [System.IO.Path]::Combine($sDestFolder, [System.IO.Path]::GetFileNameWithoutExtension($sFileName) + (Get-Date -f '_yyyyMMdd_HHmmss') + '.zip')
if([System.IO.File]::Exists($sSourceFileName)) {
if([System.IO.Directory]::Exists($sDestFolder)) {
Compress-Archive -Path $sSourceFileName -DestinationPath $sDestFileName -Force
if([System.IO.File]::Exists($sDestFileName)) {
Write-Host "Successfully create zip-archive [$sDestFileName]." -ForegroundColor Green
} else {
Write-Host "Can't create zip-archive [$sDestFileName]." -ForegroundColor Red
}
} else {
Write-Host "Can't find destination folder [$sDestFolder]." -ForegroundColor Red
}
} else {
Write-Host "Can't find source file [$sSourceFileName]." -ForegroundColor Red
}
Цитата pinguindell:
в 09 :00, в 12:00 и в 17:00, »
|
Создаёте задание в Планировщике, которое будет исполнять скрипт PowerShell с данным кодом в указанное время.