摘要: /* com组件,object对象释放, ref: https://www.codenong.com/2191489/ using (var coms = new ReleaseWrapper()) { var fso = coms.Add(new FileSystemObject()); var 阅读全文
posted @ 2022-04-27 19:55 otoboku 阅读(32) 评论(0) 推荐(0)
摘要: 清理VS编译的临时文件 for /d /r . %%d in (bin,obj,debug,release) do @if exist "%%d" rd /s/q "%%d" cd .vs for /d /r . %%d in (ipch) do @if exist "%%d" rd /s/q "% 阅读全文
posted @ 2022-03-13 22:02 otoboku 阅读(276) 评论(0) 推荐(0)
摘要: using System; using System.IO; using System.Runtime.InteropServices; namespace ConsoleApp1 { /* Zlib包装类,需要开启不安全代码编译 static void Main(string[] args) { 阅读全文
posted @ 2022-03-08 20:07 otoboku 阅读(1011) 评论(0) 推荐(0)
摘要: 枚举系统进程和进程模块 foreach (var app in Process.GetProcesses()) { Debug.WriteLine($"app.id={app.Id},Name={app.ProcessName}"); try { foreach (ProcessModule mod 阅读全文
posted @ 2022-02-26 13:05 otoboku 阅读(66) 评论(0) 推荐(0)