• 博客园logo
  • 会员
  • 周边
  • 众包
  • 新闻
  • 博问
  • 闪存
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
wjshan0808

Learn from yesterday, Live for today, For a better tomorrow.
 ————wjshan0808

博客园    首页    新随笔    联系   管理    订阅  订阅

随笔分类 -  计算机

1 2 下一页
重置Navicat Premium试用天数

摘要::: @title 重置Navicat Premium试用天数 @echo off setlocal rem NAVB-KXVP-XUQZ-XPW7 set Info=Info set Regist=Registration rem 删除Regist for /f %%i in ('"REG QUE 阅读全文
posted @ 2022-11-13 17:22 wjshan0808 阅读(287) 评论(0) 推荐(0)
用BAT使用FTP命令上传文件

摘要:上传文件 @ECHO OFF REM 注:不要添加非必要空格符 REM 目录文件 SET LOCAL_FILES=*.dll SET LOCAL_DIR="F:\workspace\Publish" REM 目录文件当前时间 SET FTP_FILE=FTP SET FTP_MKDIR=DIR_%D 阅读全文
posted @ 2021-09-16 10:50 wjshan0808 阅读(1006) 评论(0) 推荐(0)
BAT自动复制最新插件至运行程序

摘要:@echo off & PUSHD %~dp0 & TITLE ... TITLE Formating ... mode con lines=1 cols=64 color 0A TITLE Variable ... set BAT_UAC_DIR=%TMP% set BAT_UAC_NAME=%r 阅读全文
posted @ 2021-09-16 10:42 wjshan0808 阅读(104) 评论(0) 推荐(0)
BAT 非右键方式以管理员身份运行批处理

摘要:@echo off & PUSHD %~dp0 & TITLE Run The BAT File As An Administrator mode con lines=4 cols=64 color 0A set BAT_UAC_DIR=%TMP% set BAT_UAC_NAME=%random%.vbs set BAT_UAC_FILE=%BAT_UAC_DIR%\%BAT_UAC_N... 阅读全文
posted @ 2018-05-11 12:43 wjshan0808 阅读(1365) 评论(0) 推荐(0)
添加系统右键菜单项 管理员取得所有权(W)(带盾牌)

摘要:@color 0A @title 添加系统右键菜单项 管理员取得所有权(^&W)(带盾牌) by wjshan0808 @echo off echo * >nul reg add HKCR\*\shell\runas /ve /d "管理员取得所有权(&W)" /f reg add HKCR\*\s 阅读全文
posted @ 2016-02-01 01:56 wjshan0808 阅读(581) 评论(0) 推荐(0)
添加右键菜单命令 在此处打开命令窗口(E)(带图标)

摘要:@color 0A @title 添加右键菜单命令 在此处打开命令窗口(^&E)(带图标) by wjshan0808 @echo off reg add HKCR\Directory\Background\shell\在此处打开命令窗口(&E) /v Icon /t reg_expand_sz / 阅读全文
posted @ 2016-01-30 22:07 wjshan0808 阅读(1353) 评论(0) 推荐(0)
系统右键菜单添加剪贴板清空项(隐藏DOS窗口)

摘要:@color 0A@title 系统右键菜单添加剪贴板清空项(隐藏DOS窗口) by wjshan0808@echo offecho 请输入右键菜单名称set /p name=::创建本机APPDATA数据文件夹md=mkdirset dpath=%APPDATA%\%name%if exist %... 阅读全文
posted @ 2016-01-24 01:02 wjshan0808 阅读(778) 评论(0) 推荐(0)
vbs让电脑发音说话

摘要:Dim vbs1 'set vbs1 = WScript.CreateObject("WScript.Shell") set vbs1 = WScript.CreateObject("SAPI.SpVoice") '语言的改变 在 Win+R中 输入 sapi.cpl 那里有 如 Microsoft... 阅读全文
posted @ 2016-01-23 11:49 wjshan0808 阅读(5093) 评论(0) 推荐(0)
修改远程桌面端口号.bat

摘要:@color 0A@title 修改远程桌面端口号 by wjshan0808@echo offecho 请输入端口号set /p port=reg add "HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server\Wds\rdpwd\Tds\tc... 阅读全文
posted @ 2016-01-23 11:46 wjshan0808 阅读(1414) 评论(0) 推荐(0)
打开/关闭光驱

摘要:/// /// The mciSendString function sends a command string to an MCI device. The device that the command is sent to is specified in the command... 阅读全文
posted @ 2015-01-20 13:01 wjshan0808 阅读(248) 评论(0) 推荐(0)
检测声卡是否安装

摘要:/// /// The waveOutGetNumDevs function retrieves the number of waveform-audio output devices present in the system. /// /// Ret... 阅读全文
posted @ 2015-01-20 12:54 wjshan0808 阅读(258) 评论(0) 推荐(0)
注册系统热键

摘要:/// /// Defines a system-wide hot key. /// /// A handle to the window that will receive WM_HOTKEY messages generated by the hot... 阅读全文
posted @ 2015-01-20 10:26 wjshan0808 阅读(157) 评论(0) 推荐(0)
遍历系统环境变量的键和值

摘要://遍历环境变量的键和值 foreach(DictionaryEntry en in Environment.GetEnvironmentVariables()) { en.Key.ToString(); ... 阅读全文
posted @ 2015-01-19 17:29 wjshan0808 阅读(222) 评论(0) 推荐(0)
系统的启动模式

摘要:SystemInformation.BootMode 阅读全文
posted @ 2015-01-19 17:10 wjshan0808 阅读(133) 评论(0) 推荐(0)
获取系统用户名

摘要:ManagementClass mc = new ManagementClass("Win32_ComputerSystem");//实例化 ManagementObjectCollection moc = mc.GetInstances();//获取管理对象集合 ... 阅读全文
posted @ 2015-01-19 17:06 wjshan0808 阅读(164) 评论(0) 推荐(0)
获取进程并关闭

摘要:using System.Diagnostics;Process[] myprocess = Process.GetProcesses();//获取进程foreach (Process pro in myprocess) { if (pro.Mai... 阅读全文
posted @ 2015-01-19 17:03 wjshan0808 阅读(196) 评论(0) 推荐(0)
遍历系统中的打印机

摘要:System.Drawing.Printing.PrinterSettings.InstalledPrinters 阅读全文
posted @ 2015-01-19 16:37 wjshan0808 阅读(207) 评论(0) 推荐(0)
获取/设置计算机名字

摘要:using Microsoft.VisualBasic.Devices;//Microsoft.VisualBasic.dll/// /// Sets a new NetBIOS name for the local computer. The name is stored in t... 阅读全文
posted @ 2015-01-19 16:26 wjshan0808 阅读(180) 评论(0) 推荐(0)
设置系统时间

摘要:/// /// Sets the current local time and date. /// /// /// [DllImport("kernel32", CharSet = CharSet.Unicode, Se... 阅读全文
posted @ 2015-01-19 16:24 wjshan0808 阅读(241) 评论(0) 推荐(0)
操作系统信息

摘要:OperatingSystem myOS = Environment.OSVersion;//创建对象 阅读全文
posted @ 2015-01-19 16:03 wjshan0808 阅读(148) 评论(0) 推荐(0)

1 2 下一页
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3