nuovo script esempio robocopy
This commit is contained in:
@@ -107,7 +107,7 @@ WriteLogOutput $logFile 0 ""
|
|||||||
& "C:\Program Files\Zabbix Agent\zabbix_sender.exe" -z zabproxy.ufficio -s "IIS04" -k Gitlab.SuccessMirrorPercent -o $mirrorSuccessPercentage
|
& "C:\Program Files\Zabbix Agent\zabbix_sender.exe" -z zabproxy.ufficio -s "IIS04" -k Gitlab.SuccessMirrorPercent -o $mirrorSuccessPercentage
|
||||||
& "C:\Program Files\Zabbix Agent\zabbix_sender.exe" -z zabproxy.ufficio -s "IIS04" -k Gitlab.ErrorsMirrorPercent -o $mirrorErrorsPercentage
|
& "C:\Program Files\Zabbix Agent\zabbix_sender.exe" -z zabproxy.ufficio -s "IIS04" -k Gitlab.ErrorsMirrorPercent -o $mirrorErrorsPercentage
|
||||||
& "C:\Program Files\Zabbix Agent\zabbix_sender.exe" -z zabproxy.ufficio -s "IIS04" -k Gitlab.CheckMirrorDuration -o $durataScript
|
& "C:\Program Files\Zabbix Agent\zabbix_sender.exe" -z zabproxy.ufficio -s "IIS04" -k Gitlab.CheckMirrorDuration -o $durataScript
|
||||||
|
\
|
||||||
#scrivo a video le statistiche
|
#scrivo a video le statistiche
|
||||||
WriteLogOutput $logFile 0 ""
|
WriteLogOutput $logFile 0 ""
|
||||||
WriteLogOutput $logFile 0 "PROGETTI ANALIZZATI: $existingProjects"
|
WriteLogOutput $logFile 0 "PROGETTI ANALIZZATI: $existingProjects"
|
||||||
|
|||||||
@@ -0,0 +1,21 @@
|
|||||||
|
###ESEMPIO COMANDO ROBOCOPY###
|
||||||
|
|
||||||
|
#path cartella di origine
|
||||||
|
$sourceFolder = "C:\Users\YYY"
|
||||||
|
|
||||||
|
#nomi dei file da copiare
|
||||||
|
$file1 = "nome1.txt"
|
||||||
|
$file2 = "nome2.txt"
|
||||||
|
$file3 = "nome3.txt"
|
||||||
|
|
||||||
|
#path delle cartelle di destinazione
|
||||||
|
$destFolder1 = "C:\Users\XXX1"
|
||||||
|
$destFolder2 = "C:\Users\XXX2"
|
||||||
|
$destFolder3 = "C:\Users\XXX3"
|
||||||
|
|
||||||
|
#copio primo file
|
||||||
|
robocopy $sourceFolder $destFolder1 $file1
|
||||||
|
#copio secondo file
|
||||||
|
robocopy $sourceFolder $destFolder2 $file2
|
||||||
|
#copio terzo file
|
||||||
|
robocopy $sourceFolder $destFolder3 $file3
|
||||||
Reference in New Issue
Block a user