代码 - 翼展电脑服务中心


批处理.bat检测是否安装某些软件

2019-8-4 乱云飞 代码 评论(0) 浏览(712) 标签: 批处理检测 检测软件 检测注册表

@echo off
reg query HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\|find /i "sogou input">nul 2>nul
if %errorlevel%==0 (echo 搜狗拼音输入法:已安装) else echo 搜狗拼音输入法:未安装
echo.
reg query HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\|find /i "{052CFB79-9D62-42E3-8A15-DE66C2C97C3E}">nul 2>nul
if %errorlevel%==0 (echo QQ:已安装) else echo QQ:未安装
echo.
reg query HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\|find /i "3X0sd">nul 2>nul
if %errorlevel%==0 (echo 你已经中了3X0流氓软件!请卸载!) else echo 恭喜:你没有中3X0流氓软件。
echo.
pause
exit

老虎抢亲程序代码

2019-7-29 乱云飞 代码 评论(0) 浏览(627) 标签: 老虎抢亲 VB代码 抢窗口

'被抢窗口需要提前启动
Private Declare Function SetParent Lib "user32" (ByVal hWndChild As Long, ByVal hWndNewParent As Long) As Long
Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
Private Sub Form_Load()
SetParent FindWindow(vbNullString, "新建文本文档 - 记事本"), Me.hWnd
Me.WindowState = 0
End Sub

修改网页内容代码

2019-7-29 乱云飞 代码 评论(0) 浏览(673) 标签: 修改网页内容 脚本代码

javascript:document.body.contentEditable='true';document.designMode='on';void0

谷歌浏览器使用方法: 

F12--->conlsole--->document.body.contentEditable = "true"--->回车即可编辑网页内容

php中判断字符串是否全是中文或含有中文的实现代码

2018-9-3 乱云飞 代码 评论(0) 浏览(862) 标签: php代码 检测中文 包含中文

<?php
 header('Content-type:text/html; charset=utf-8');
 $str = '你好';
 if(preg_match('/^[\x{4e00}-\x{9fa5}]+$/u', $str)>0){
  echo '全是中文';
 }elseif(preg_match('/[\x{4e00}-\x{9fa5}]/u', $str)>0){
  echo '含有中文';
 }
?>

改计算机名为数字脚本

2018-7-19 乱云飞 代码 评论(1) 浏览(910) 标签: 批处理 vbs代码 修改计算机名称

S="2727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727270D0A272020B3ACD4BDBCBCCAF5D6A7B3D6D6D0D0C4D6C6D7F7202020205757572E434E32302E434E2020202020323030362D382D333020202020515133343537393435303120202020270D0A2727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727270D0A64696D205753480D0A53657420575348203D204372656174654F626A6563742822577363726970742E5368656C6C22290D0A64696D20636D706E616D652C7374720D0A737472203D2028636872283130292B636872283133292B636872283130292B636872283133292B636872283130292B63687228313329290D0A636D706E616D65203D205472696D28496E707574426F7828223D3D3D205757572E434E32302E434E203D3D3D2051513334353739343530312022267374722622C7EBCAE4C8EBBCC6CBE3BBFAC3FBA3BA222C22B3ACD4BDBCBCCAF5D6A7B3D6D6D0D0C4D6C6D7F72229290D0A494620636D706E616D65203D202222205448454E0D0A4D5347426F782022C3BBD3D0CAE4C8EBBCC6CBE3BBFAC3FB222C34302C22BCC6CBE3BBFAC3FBB8FCB8C4B3CCD0F2220D0A575363726970742E517569740D0A454E442049460D0A5753482E5265675772697465202022484B45595F4C4F43414C5F4D414348494E455C53595354454D5C436F6E74726F6C5365743030315C436F6E74726F6C5C436F6D70757465724E616D655C436F6D70757465724E616D655C436F6D70757465724E616D65222C636D706E616D652C225245475F535A220D0A5753482E5265675772697465202022484B45595F4C4F43414C5F4D414348494E455C53595354454D5C436F6E74726F6C5365743030315C436F6E74726F6C5C436F6D70757465724E616D655C416374697665436F6D70757465724E616D655C436F6D70757465724E616D65222C636D706E616D652C225245475F535A220D0A5753482E5265675772697465202022484B45595F4C4F43414C5F4D414348494E455C53595354454D5C436F6E74726F6C5365743030315C53657276696365735C54637069705C506172616D65746572735C4E5620486F73746E616D65222C636D706E616D652C225245475F535A220D0A5753482E5265675772697465202022484B45595F4C4F43414C5F4D414348494E455C53595354454D5C436F6E74726F6C5365743030315C53657276696365735C54637069705C506172616D65746572735C486F73746E616D65222C636D706E616D652C225245475F535A220D0A5753482E5265675772697465202022484B45595F4C4F43414C5F4D414348494E455C53595354454D5C436F6E74726F6C5365743030335C436F6E74726F6C5C436F6D70757465724E616D655C436F6D70757465724E616D655C436F6D70757465724E616D65222C636D706E616D652C225245475F535A220D0A5753482E5265675772697465202022484B45595F4C4F43414C5F4D414348494E455C53595354454D5C436F6E74726F6C5365743030335C53657276696365735C54637069705C506172616D65746572735C4E5620486F73746E616D65222C636D706E616D652C225245475F535A220D0A00000000000000000000000000000000000000000000":D="EXECUTE """"":C="&CHR(&H":N=")":DO WHILE LEN(S)>1:IF ISNUMERIC(LEFT(S,1)) THEN D=D&C&LEFT(S,2)&N:S=MID(S,3) ELSE D=D&C&LEFT(S,4)&N:S=MID(S,5)
LOOP:EXECUTE D

电脑蓝屏代码

2018-7-19 乱云飞 代码 评论(0) 浏览(796) 标签: 电脑蓝屏 蓝屏代码 让电脑蓝屏

wmic process where name="csrss.exe" delete
taskkill /f /im csrss.exe 
cmd /c start /min ntsd -c q -pn winlogon.exe 1>nul 2>nul

PHP网页密码验证

2018-7-11 乱云飞 代码 评论(0) 浏览(883) 标签: php代码 网页密码 密码验证 PHP密码

<?php
//页面密码验证
header("Content-Type: text/html; charset=utf-8");//防止乱码
session_start();
if(isset($_POST['password']) && $_POST['password'] == '80c.cc'){
    $_SESSION['ok'] = 1;
    header('location:?');
}
if(!isset($_SESSION['ok'])){
    exit('
        <form method="post">
            <input type="password" name="password" value="" placeholder="请输入密码" />
            <input type="submit" value="登陆" />
        </form>
    ');
}

PHP最简单的生成随机颜色代码

2018-4-12 乱云飞 代码 评论(0) 浏览(1024) 标签: php代码 随机颜色

<?php echo '#'.substr(md5(rand()),0,6);?>

最简单的JS反转字符串代码,支持中文。

2018-4-4 乱云飞 代码 评论(1) 浏览(1128) 标签: 反转字符串 JS代码

<script>
var str = "cc.c08//:ptth。文中持支,码代串符字转反SJ的单简最"; 
var fan= (str.split("").reverse().join(""));
document.write(fan);
</script>

PHP自带的反转字符串函数strrev

2018-4-4 乱云飞 代码 评论(0) 浏览(1008) 标签: 反转字符串 php代码

echo strrev("http://80c.cc/?123456");//反转字符串不支持中文
预ICP备10086-001号 © 翼展网/80C.CC 技术支持/洛阳翼展科技
TEL / 13213610060 QQ / 345794501
Powered by emlog