循环自动备份文件的power shell脚本
$sourceFolders = “\路径1”,
“\路径2”
$targetFolders = “\路径3”,
“\路径4”
while($true){
write-host "# 即将执行copy"
Write-Host "- 将从上一次copy日期开始copy,若需手动copy,请将该文件 D:\last_backup_time.txt 删除"
Write-Host “- 检查上一次copy日期”
$FolderNO = $sourceFolders.Length
$time_stamp_path
原创
2021-07-07 13:52:55 ·
613 阅读 ·
0 评论