This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Drawing; | |
using System.Drawing.Imaging; | |
namespace TextImage | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# windows 2003 向けのイベントログローテーションタスク | |
param($logname="[logname]", $backupFolder=(&{Split-Path $MyInvocation.ScriptName})) | |
$logfiles = Get-WmiObject win32_nteventlogfile -Filter "LogfileName='$logname'" -EnableAllPrivileges | |
if ($logfiles -eq $null) | |
{ | |
throw "ログファイル $logname は存在しません。" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
select-object @{ n = "propertyName"; e = { /* expression $_ */ } } |
NewerOlder