1 2 3 4 5 6 7 8 |
# Ejemplo de fichero: # \\localhost\C$,J # \\localhost\prueba,I foreach($linea in Get-Content .\mapear.txt) { New-PSDrive -Name $linea.Split(",")[1] -PSProvider FileSystem -Root $linea.Split(",")[0] } |
1 2 3 4 5 6 7 8 |
# Ejemplo de fichero: # \\localhost\C$,J # \\localhost\prueba,I foreach($linea in Get-Content .\mapear.txt) { New-PSDrive -Name $linea.Split(",")[1] -PSProvider FileSystem -Root $linea.Split(",")[0] } |