1
我有一个脚本powershell,脚本可以将数据库备份文件复制到网络驱动器。 该脚本只从2复制2个文件。 我想将本地磁盘D上的所有文件复制到网络驱动器,并归档文件。 我该如何修复这个脚本?使用PowerShell将文件复制到共享驱动器
$TimeStamp = get-date -f dd_MM_yyyy
$Destination = "M:\networkdrive\folder\BACKUP_10.200.153.55\DATA_" + $TimeStamp
New-Item -ItemType directory -Path $Destination -Force
Copy-Item -Path D:\MSSQL\BACKUP\*.* -Destination $Destination -Force
Remove-Item D:\MSSQL\BACKUP\*.*
是否要从该目录复制项目?你的最终目标是什么? – TheIncorrigible1