Robocopy automatically taking source directory as the script file directory

  • Thread starter Thread starter AKSJ007
  • Start date Start date
A

AKSJ007

Guest
Synopsis:- Script file directory name -> PowerShellScripts (in Desktop in local C:\...)- Script file name -> Dbackup.ps1- Intended source for mirroring -> D:\ (a partition on local hard disk)- Intended destination for mirroring -> F:\D_LAPTOP_BACKUP_ ... (F: is external SSD connected via USB)Script:[string]$currentDirectory = Get-Location[DateTime]$currentDateTime&n

Continue reading...
 
Back
Top