PowerShellでGAC(グローバル・アセンブリ・キャッシュ)覗き見!

by ちあき 24. 10月 2009 08:30
覗き見(*´Д`*)ハァハァ

▼ Microsoft.PowerShell.ConsoleHost.dllの場所
New-PSDrive -Name "chiakiGAC" -PSProvider "FileSystem" -Root "C:\WINDOWS\assembly"
Get-ChildItem chiakiGAC:\GAC_MSIL\Microsoft.PowerShell.ConsoleHost\1.0.0.0__31bf3856ad364e35

▼ Bing検索結果
つ|グローバル アセンブリ キャッシュ - Bing
つ|New-PSDrive - Bing
つ|Get-ChildItem - Bing

最新のブログ

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

PowerShell 2.0 RC

PowerShellでosqlでコンマ区切り!

by ちあき 23. 10月 2009 08:01
.csvのお供に!

▼ osqlComma.ps1
#▼ コンマ区切り
"SELECT * FROM tChiaki" | osql -S CHIAKIPC\SQLEXPRESS -E -d chiakiDB "-s,"

#▼ ↑の他区切り
"SELECT * FROM tChiaki" | osql -S CHIAKIPC\SQLEXPRESS -E -d chiakiDB -s♪
▼ Bing検索結果
osql - Bing
パイプライン powershell - Bing←入力リダイレクト

最新のブログ

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

PowerShell 2.0 RC | SQL Server

PowerShellでSQLServer大好きです!

by ちあき 22. 10月 2009 08:43

SQLPSが大好きです!

▼ SQLPS.exe
"C:\Program Files\Microsoft SQL Server\100\Tools\Binn\SQLPS.exe"

▼ C:\Users\chiaki\PSandSQL.ps1

#&"$home\PSandSQL.ps1"

$strSQL = @"
CREATE TABLE tChiaki (f1 int primary key not null, f2 varchar(50))
INSERT INTO tChiaki VALUES (1, 'PowerShell が大好きです!')
INSERT INTO tChiaki VALUES (2, 'SELECT * FROM が大好きです!')
INSERT INTO tChiaki VALUES (3, '1と2でご飯3杯いけます!!')
SELECT * FROM tChiaki
DROP TABLE tChiaki
"@

Invoke-Sqlcmd -ServerInstance "CHIAKIPC\SQLEXPRESS" -Database "chiakiDB" -Query $strSQL | Format-Table -AutoSize

▼ Bing検索結果
つ|invoke-sqlcmd - Bing
つ|format-table powershell - Bing

最新のブログ

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

PowerShell 2.0 RC | SQL Server

PowerShellで123ダー!

by ちあき 21. 10月 2009 12:09
( ゜∀゜)o彡°猪木!猪木!

1..3 | ForEach-Object { $_ } -End { "ダー!" }

▼ Bingの検索結果
配列 powershell - Bing ←1..3
ForEach-Object - Bing
アントニオ猪木 - Bing ←123ダー!

最新のブログ

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

PowerShell 2.0 RC

PowerShell好きですか?

by ちあき 20. 10月 2009 14:05

Yes!Yes!!Yes!!!

▼ LovePowerShell.ps1

$r = Read-Host "PowerShell好きですか?[y/n]"
switch($r) { 
    "y"{"y←ヾ(*´∀`*)ノキャッキャ"}
    "n"{"n←(´・ω・``) ショボーン"}
    default {"{0}←{1}" -f $r, "( ´∀`)σ)∀``)プニプニ"}
}

最新のブログ

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

PowerShell 2.0 RC

Calendar

<<  3月 2010  >>
月曜火曜水曜木曜金曜土曜日曜
22232425262728
1234567
891011121314
15161718192021
22232425262728
2930311234

View posts in large calendar
Disclaimer
The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

© Copyright 2010 PowerShell from Japan!!