Advertisement
D0cEvil

PowerShell - Lab 4

Jan 4th, 2023
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PowerShell 0.29 KB | Software | 0 0
  1. $DirNameSp = Get-Content "D:\test\spisok.txt"  #Отсюда берем список папок
  2. foreach ( $DirName in $DirNameSp )
  3. {
  4. Set-Location D:\test  #Устанавливаем место где будем создавать папки
  5. New-Item -Path $DirName -ItemType Directory
  6. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement