回答編集履歴
1
[System.Runtime.InteropServices.Marshal]::FinalReleaseComObject($book) | Out-Null
test
CHANGED
@@ -28,6 +28,8 @@
|
|
28
28
|
|
29
29
|
[System.Runtime.InteropServices.Marshal]::FinalReleaseComObject($power) | Out-Null
|
30
30
|
|
31
|
+
[System.Runtime.InteropServices.Marshal]::FinalReleaseComObject($book) | Out-Null
|
32
|
+
|
31
33
|
}
|
32
34
|
|
33
35
|
[GC]::Collect()
|