Lazy Diary @ Hatena Blog

PowerShell / Java / miscellaneous things about software development, Tips & Gochas. CC BY-SA 4.0/Apache License 2.0

Entries from 2008-09-05 to 1 day

Windows PowerShellスクリプトにDrag&Dropはできない

Windows Scripting Hostでは .vbs ファイルや .js ファイルに他のファイルをDrag&Dropして処理を行うことができたが(バッチファイルも同様)、Windows PowerShellではスクリプトファイル(.ps1)に他のファイルをDrag&Dropすることはできない。 HTMLアプリケ…

署名なしのWindows PowerShellスクリプトは実行できない

Windows PowerShellでは、署名のないスクリプト(.ps1ファイル)はデフォルトでは実行できない。 Set-ExecutionPolicyで環境の実行ポリシーを変更*1するか、スクリプトに対して署名を行う*2必要がある。 *1:http://www.microsoft.com/japan/technet/scriptce…

Windows Scripting Hostでタイムスタンプ変更

Windows Scripting Hostでは、ファイルのタイムスタンプの取得はできるが変更はできない*1。もちろん、外部コマンドの力を借りれば別。 *1:http://www.microsoft.com/japan/technet/scriptcenter/resources/qanda/feb07/hey0213.mspx