Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $DirectoryIn = 'd:\wems'
- $DirectoryOut = 'd:\Wems\Convs'
- $Path_ww2ogg = 'D:\wems\ww2ogg.exe'
- $Path_revorb = 'D:\wems\revorb.exe'
- $Path_codebooks = 'D:\wems\packed_codebooks.bin'
- $files = @( Get-ChildItem -Path $DirectoryIn -Filter '*.wem' -Recurse -File )
- $counter = 0;
- ForEach ($file in $files) {
- $counter++
- $local:fileFullName = $file.FullName
- $local:fileShortName = $file.Name -replace '\.wem$',''
- $local:fileNewPath = Join-Path -Path $DirectoryOut -ChildPath $( $local:fileShortName + '.ogg' )
- Start-Process -FilePath $Path_ww2ogg -ArgumentList @( $local:fileFullName,'-o',$local:fileNewPath, '--pcb',$Path_codebooks ) -Wait -WindowStyle Hidden | Out-Null
- Start-Process -FilePath $Path_revorb -ArgumentList @($local:fileNewPath ) -Wait -WindowStyle Hidden | Out-Null
- Write-Host -ForegroundColor Yellow "$($counter ) of $($files.Count)"
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement