10 2023 档案

摘要:FileSystem.AppDataDirectory AppContext.BaseDirectory System.Environment.CurrentDirectory System.Windows.Forms.Application.StartupPath; System.Windows. 阅读全文
posted @ 2023-10-27 10:58 stweily 阅读(23) 评论(0) 推荐(0) 编辑
摘要:host方案可以采用 schtasks (windows平板的 linux则使用crontab ) 冷备份 mysqladmin 热备份 mysqldupm 比如: C:\Program Files\MariaDB 11.1\bin>mysqldump -u root -pxxx conferenc 阅读全文
posted @ 2023-10-27 10:03 stweily 阅读(12) 评论(0) 推荐(0) 编辑
摘要:先看常见的问题 internal class Program { static void Main(string[] args) { var actions = GetSomeAction(); for (int i = 0; i < actions.Count; i++) actions[i]() 阅读全文
posted @ 2023-10-25 20:21 stweily 阅读(3) 评论(0) 推荐(0) 编辑
摘要:reg query HKLM\SOFTWARE\Classes /s /f "etapi.dll" 其中 HKCR HKLM HKCU HKU HKCC 五个根部罗列出相关的信息。 /s 表示递归搜索子项 /s “XXX” 查找指定的字符串的键或值 查到的结果中经常会有{xxx-xxx-xx-xxx 阅读全文
posted @ 2023-10-24 19:33 stweily 阅读(159) 评论(0) 推荐(0) 编辑
摘要:关闭Windows更新功能的方法有以下几种: 1 通过设置中的Windows更新选项关闭:打开“设置”应用,选择“更新和安全”,在左侧导航栏中选择“Windows更新”,在“更新设置”下点击“更改活动小时”,将开关从“开”调整为“关”。 2 通过服务管理关闭Windows更新:按下Win + R组合 阅读全文
posted @ 2023-10-24 17:36 stweily 阅读(227) 评论(0) 推荐(0) 编辑
摘要:通常做设置时需要对指定的程序或端口进行防火墙放行 @echo off rem 设置需要启动的端口 set OTHERPORT=1433,3389 rem 启用防火墙常规端口 可以删除 netsh advfirewall firewall add rule name="_Ping" dir=in pr 阅读全文
posted @ 2023-10-18 16:40 stweily 阅读(72) 评论(0) 推荐(0) 编辑
摘要:本应比较简单直接调用,Office6下面的文件件etapi.dll (excel) ksoapi.dll (office) wpsapi.dll(word) wppapi(powerpoint) 互操作类型-》false 结果是管理员启动(Run as时提示Com组件未注册) 类似 检索 COM 类 阅读全文
posted @ 2023-10-17 14:51 stweily 阅读(1360) 评论(2) 推荐(2) 编辑
摘要:C#中,有很多方式可以获取程序运行的当前目录,常见的方式有: 1、string strPath1 = System.Environment.CurrentDirectory() ; 2、string strPath2 = System.IO.Directory.GetCurrentDirectory 阅读全文
posted @ 2023-10-10 15:56 stweily 阅读(1286) 评论(0) 推荐(0) 编辑
摘要:二、WPF退出窗口方法 1、强制退出,即使有其他的线程没有结束 Environment.Exit(0);2、关闭当前程序,如果有其他线程没有结束,不会关闭 System.Windows.Application.Current.Shutdown(); 3、强制终止当前进程,不仅关闭应用程序,还会关闭所 阅读全文
posted @ 2023-10-09 14:37 stweily 阅读(954) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示