Advertisement
Guest User

Untitled

a guest
Nov 10th, 2017
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $DiretorioArquivo = ""
  2.  
  3. Function PUPILOMAN {
  4.  
  5.  
  6.     $ComandoGET = Get-ChildItem -Force E:\Raiz1 | select-object name
  7.  
  8.     foreach ( $ListaPastas in $ComandoGET){
  9.         $ReplacePasta = $ListaPastas -replace "@{Name=", "" -replace "}", ""
  10.  
  11.         cd E:\Raiz1\Usuario\$ReplacePastaAppData\Roaming\Mozilla\Firefox\Profiles\
  12.  
  13.         $ComandoGetProfiles = Get-ChildItem -Force | select-object name
  14.  
  15.         foreach ( $ListaPastaProfile in $ComandoGetProfiles){
  16.  
  17.             $ReplacePastaProfile = $ListaPastaProfile -replace "@{Name=", "" -replace "}", ""
  18.  
  19.             robocopy /zb /e /sec /r:0 /w:0 "$DiretorioArquivo" "E:\Raiz1\Usuario\$ReplacePastaAppData\Roaming\Mozilla\Firefox\Profiles\$ReplacePastaProfile\"
  20.        
  21.  
  22.         }
  23.  
  24.  
  25.     }
  26.  
  27. }
  28.  
  29. PUPILOMAN
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement