Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for($i = 0;$i -le 30;$i++) {
- if (Test-Path "$i") {
- Remove-Item "$i" -Recurse
- }
- New-Item -Path "./" -Name "$i" -ItemType directory
- Set-Location "$i"
- if (Test-Path "$i.txt") {
- Remove-Item "$i.txt"
- }
- for($line = 0;$line -le 50;$line++) {
- Add-Content -Path "$i.txt" -Value ("{0}---{1}---{2}{3}---{4}" -F (Get-Random -Minimum 1000 -Maximum 32768),
- (Get-Random -Minimum 1000 -Maximum 32768),
- (Get-Random -Minimum 1000 -Maximum 32768),
- (Get-Random -Minimum 1000 -Maximum 32768),
- (Get-Random -Minimum 1000 -Maximum 32768))
- }
- Set-Location ".."
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement