SHARE
TWEET

freac 2

auone Jun 5th, 2020 (edited) 685 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ############################ BEGIN of test1.ps1 #################################
  2. $freac = 'C:\prog\freac\freaccmd.exe'
  3. $OutputDir = 'C:\var\work'
  4. $AacItem = Get-Item 'C:\var\work\music.m4a'
  5.  
  6. Write-Host 'Start-Process を使用するバージョン(-NoNewWindow 無し)'
  7. Start-Process $freac -ArgumentList ('-e','sndfile-wave','-d',$OutputDir,$AacItem.FullName) -Wait
  8. Write-Host 'abcdefg ABCDEFG'
  9. Write-Host 'あいうえお日本語'
  10. ############################ END of test1.ps1 #################################
  11.  
  12. ############################ BEGIN of test2.ps1 #################################
  13. $freac = 'C:\prog\freac\freaccmd.exe'
  14. $OutputDir = 'C:\var\work'
  15. $AacItem = Get-Item 'C:\var\work\music.m4a'
  16.  
  17. Write-Host 'Start-Process を使用するバージョン(-NoNewWindow 有り)'
  18. Start-Process $freac -ArgumentList ('-e','sndfile-wave','-d',$OutputDir,$AacItem.FullName) -Wait -NoNewWindow
  19. Write-Host 'abcdefg ABCDEFG'
  20. Write-Host 'あいうえお日本語'
  21. ############################ END of test2.ps1 #################################
  22.  
  23. ############################ BEGIN of test3.ps1 #################################
  24. $freac = 'C:\prog\freac\freaccmd.exe'
  25. $OutputDir = 'C:\var\work'
  26. $AacItem = Get-Item 'C:\var\work\music.m4a'
  27.  
  28. Write-Host 'オリジナルに近いバージョン(外部コマンドを「&」で実行)'
  29. & $freac -e sndfile-wave -d $OutputDir $AacItem.FullName
  30. Write-Host 'abcdefg ABCDEFG'
  31. Write-Host 'あいうえお日本語'
  32. ############################ END of test3.ps1 #################################
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top