2015-02-17から1日間の記事一覧
こんな感じ powershell Set-ExecutionPolicy RemoteSigned powershell .\main.ps1 powershell Set-ExecutionPolicy Restricted管理者権限が必要な処理の場合はbatファイルも管理者権限で起動する必要がある。ダブルクリックで管理者権限起動したい場合jはシ…
事前に Set-ExecutionPolicy RemoteSigned して PowerShellスクリプトの実行セキュリティ・ポリシーを変更しておく必要はある。 $path = "Xlsを探すパス(サブフォルダも再帰して探します)" Add-Type -AssemblyName Microsoft.Office.Interop.Excel $xlRemove…