摘要:
备份脚本 @echo off REM 获取当前日期和时间,并格式化为 YYYYMMDD_HHMMSS set hour=%time:~0,2% REM 处理小时是个位数的情况(前面带空格的问题),替换空格为0 if "%hour:~0,1%"==" " set hour=0%hour:~1,1% s 阅读全文
摘要:
功能 在程序运行前加载特定的dll 配置环境变量 DOTNET_STARTUP_HOOKS=/path/to/StartupHook1.dll:/path/to/StartupHook2.dll dll代码示例 internal class StartupHook { public static v 阅读全文
摘要:
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; public class LinuxHelper { public string GetCpu() { var r 阅读全文