Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $files = Get-ChildItem -Path ./coordinates/*.ini
- $output = "./group.txt"
- if (-not(Test-Path -Path $output -PathType Leaf)) {
- New-Item $output
- }
- Set-Content $output "x y z"
- foreach($file in $files)
- {
- $line = Get-Content $file | select -first 1 -skip 1
- $line = $line.Substring(5)
- Add-Content $output $line
- }
Advertisement
Advertisement