无忧启动论坛

 找回密码
 注册
搜索
系统gho:最纯净好用系统下载站投放广告、加入VIP会员,请联系 微信:wuyouceo
查看: 3274|回复: 3
打印 上一主题 下一主题

[求助] 这2个批处理怎么合并在一起SetupComplete.cmd

[复制链接]
跳转到指定楼层
1#
发表于 2021-11-12 12:18:53 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
这2个批处理怎么合并在一起SetupComplete.cmd
@echo off
echo. & echo * 驱动安装正在进行(请勿关闭本窗口) *

IF EXIST "%SystemRoot%\WanDrv\WanDrv.exe" (
start /wait %SystemRoot%\WanDrv\WanDrv.exe /FA
)
cls
IF EXIST "%SystemRoot%\WanDrv" (
rd /f /q %SystemRoot%\WanDrv
)
cls
IF EXIST "%systemdrive%\Drivers" (
rd /q /s %systemdrive%\Drivers
)
cls
rd /s /q %Windir%\Setup\Scripts 1>nul 2>nul

del%0

-----------------------------------------------------------------分割线上面1下面2
@echo off
IF EXIST C:\SWTOOLS RD /Q /S C:\SWTOOLS
IF EXIST "%Systemroot%\Setup\OEMFILES" RD /Q /S %Systemroot%\Setup\OEMFILES
IF EXIST "%Systemroot%\Setup\AIDA64" RD /Q /S %Systemroot%\Setup\AIDA64
IF EXIST "%SYSTEMDRIVE%\AIDA64 REPORTS" RD /Q /S "%SYSTEMDRIVE%\AIDA64 REPORTS"
IF EXIST "%SYSTEMDRIVE%\DRV64" RD /Q /S "%SYSTEMDRIVE%\DRV64"
IF EXIST "%SYSTEMDRIVE%\DRV32" RD /Q /S "%SYSTEMDRIVE%\DRV32"
IF EXIST "%SYSTEMDRIVE%\DRV" RD /Q /S "%SYSTEMDRIVE%\DRV"
IF EXIST "%WINDIR%\System32\DepX64.exe" del /f /q "%WINDIR%\System32\DepX64.exe"
IF EXIST "%WINDIR%\System32\DepX86.exe" del /f /q "%WINDIR%\System32\DepX86.exe"

START /WAIT /B cscript /file:///C:\Users\Administrator\AppData\Roaming\Tencent\QQTempSys\OOY5$4OW5H`8`9%(9$)T67M.giflogo %Systemroot%\system32\slmgr.vbs -xpr | findstr /I "计算机已永久激活" && GOTO ENDALL
START /WAIT /B cscript /file:///C:\Users\Administrator\AppData\Roaming\Tencent\QQTempSys\OOY5$4OW5H`8`9%(9$)T67M.giflogo %SYSTEMROOT%\system32\slmgr.vbs -xpr | findstr /I "The machine is permanently activated" && GOTO ENDALL

WMIC PARTITION | findstr /i "GPT"
IF NOT ERRORLEVEL 1 GOTO GPT

%~dp0"Windows Loader.exe" /silent /preactivate
cd %~dp0
attrib -R -A -S -H *.*
SHUTDOWN /R /T 6
RMDIR /S /Q "%WINDIR%\Setup\Scripts"
exit

:GPT
START /WAIT /MIN %~dp0"efi.cmd"
cd %~dp0
attrib -R -A -S -H *.*
SHUTDOWN /R /T 6
RMDIR /S /Q "%WINDIR%\Setup\Scripts"
exit

:ENDALL
cd %~dp0
attrib -R -A -S -H *.*
RMDIR /S /Q "%WINDIR%\Setup\Scripts"
exit
合并在一起保存为SetupComplete.cmd
2#
发表于 2021-11-12 12:31:46 | 只看该作者
@echo off
echo. & echo * 驱动安装正在进行(请勿关闭本窗口) *

IF EXIST "%SystemRoot%\WanDrv\WanDrv.exe" (
start /wait %SystemRoot%\WanDrv\WanDrv.exe /FA
)
cls
IF EXIST "%SystemRoot%\WanDrv" (
rd /f /q %SystemRoot%\WanDrv
)
cls
IF EXIST "%systemdrive%\Drivers" (
rd /q /s %systemdrive%\Drivers
)
cls
IF EXIST C:\SWTOOLS RD /Q /S C:\SWTOOLS
IF EXIST "%Systemroot%\Setup\OEMFILES" RD /Q /S %Systemroot%\Setup\OEMFILES
IF EXIST "%Systemroot%\Setup\AIDA64" RD /Q /S %Systemroot%\Setup\AIDA64
IF EXIST "%SYSTEMDRIVE%\AIDA64 REPORTS" RD /Q /S "%SYSTEMDRIVE%\AIDA64 REPORTS"
IF EXIST "%SYSTEMDRIVE%\DRV64" RD /Q /S "%SYSTEMDRIVE%\DRV64"
IF EXIST "%SYSTEMDRIVE%\DRV32" RD /Q /S "%SYSTEMDRIVE%\DRV32"
IF EXIST "%SYSTEMDRIVE%\DRV" RD /Q /S "%SYSTEMDRIVE%\DRV"
IF EXIST "%WINDIR%\System32\DepX64.exe" del /f /q "%WINDIR%\System32\DepX64.exe"
IF EXIST "%WINDIR%\System32\DepX86.exe" del /f /q "%WINDIR%\System32\DepX86.exe"

START /WAIT /B cscript /file:///C:\Users\Administrator\AppData\Roaming\Tencent\QQTempSys\OOY5$4OW5H`8`9%(9$)T67M.giflogo %Systemroot%\system32\slmgr.vbs -xpr | findstr /I "计算机已永久激活" && GOTO ENDALL
START /WAIT /B cscript /file:///C:\Users\Administrator\AppData\Roaming\Tencent\QQTempSys\OOY5$4OW5H`8`9%(9$)T67M.giflogo %SYSTEMROOT%\system32\slmgr.vbs -xpr | findstr /I "The machine is permanently activated" && GOTO ENDALL

WMIC PARTITION | findstr /i "GPT"
IF NOT ERRORLEVEL 1 GOTO GPT

%~dp0"Windows Loader.exe" /silent /preactivate
cd %~dp0
attrib -R -A -S -H *.*
SHUTDOWN /R /T 6
RMDIR /S /Q "%WINDIR%\Setup\Scripts"
exit

:GPT
START /WAIT /MIN %~dp0"efi.cmd"
cd %~dp0
attrib -R -A -S -H *.*
SHUTDOWN /R /T 6
RMDIR /S /Q "%WINDIR%\Setup\Scripts"
exit

:ENDALL
cd %~dp0
attrib -R -A -S -H *.*
RMDIR /S /Q "%WINDIR%\Setup\Scripts"
del%0
exit

点评

我来看看谢谢实体机测试一下  详情 回复 发表于 2021-11-12 16:36
回复

使用道具 举报

3#
 楼主| 发表于 2021-11-12 16:36:18 | 只看该作者
2012jiashanni 发表于 2021-11-12 12:31
@echo off
echo. & echo * 驱动安装正在进行(请勿关闭本窗口) *

我来看看谢谢实体机测试一下

点评

@echo off echo. & echo * 驱动安装正在进行(请勿关闭本窗口) * if exist %SystemRoot%\Setup\Scripts\YH.reg regedit /s %SystemRoot%\Setup\Scripts\YH.reg start /wait %SystemRoot%\Setup  详情 回复 发表于 2021-11-12 17:05
回复

使用道具 举报

4#
 楼主| 发表于 2021-11-12 17:05:22 | 只看该作者
wuming520 发表于 2021-11-12 16:36
我来看看谢谢实体机测试一下

       @echo off
echo. & echo     *   驱动安装正在进行(请勿关闭本窗口)   *

if exist %SystemRoot%\Setup\Scripts\YH.reg regedit /s %SystemRoot%\Setup\Scripts\YH.reg
start /wait %SystemRoot%\Setup\Scripts\123.exe /A
start /wait %SystemRoot%\system\OOBE.CMD
rd /s /q %Windir%\Setup\Scripts 1>nul 2>nul
DEL /F /Q %windir%\Panther\unattend.xml >nul
RD /Q /S %windir%\Panther >nul

del%0                                                     -----------------------------------------------------------------分割线上面1下面2                 @echo off

IF EXIST C:\SWTOOLS RD /Q /S C:\SWTOOLS   
IF EXIST "%Systemroot%\Setup\OEMFILES" RD /Q /S %Systemroot%\Setup\OEMFILES
IF EXIST "%Systemroot%\Setup\AIDA64" RD /Q /S %Systemroot%\Setup\AIDA64
IF EXIST "%SYSTEMDRIVE%\AIDA64 REPORTS" RD /Q /S "%SYSTEMDRIVE%\AIDA64 REPORTS"
IF EXIST "%SYSTEMDRIVE%\DRV64" RD /Q /S "%SYSTEMDRIVE%\DRV64"
IF EXIST "%SYSTEMDRIVE%\DRV32" RD /Q /S "%SYSTEMDRIVE%\DRV32"
IF EXIST "%SYSTEMDRIVE%\DRV" RD /Q /S "%SYSTEMDRIVE%\DRV"
IF EXIST "%WINDIR%\System32\DepX64.exe" del /f /q "%WINDIR%\System32\DepX64.exe"
IF EXIST "%WINDIR%\System32\DepX86.exe" del /f /q "%WINDIR%\System32\DepX86.exe"

START /WAIT /B cscript /logo %Systemroot%\system32\slmgr.vbs -xpr | findstr /I "计算机已永久激活" && GOTO ENDALL
START /WAIT /B cscript /logo %SYSTEMROOT%\system32\slmgr.vbs -xpr | findstr /I "The machine is permanently activated" && GOTO ENDALL

WMIC PARTITION | findstr /i "GPT"
IF NOT ERRORLEVEL 1 GOTO GPT

%~dp0"Windows Loader.exe" /silent /preactivate
cd %~dp0
attrib -R -A -S -H *.*
SHUTDOWN /R /T 6
RMDIR /S /Q "%WINDIR%\Setup\Scripts"
exit

:GPT
START /WAIT /MIN %~dp0"efi.cmd"
cd %~dp0
attrib -R -A -S -H *.*
SHUTDOWN /R /T 6
RMDIR /S /Q "%WINDIR%\Setup\Scripts"
exit

:ENDALL
cd %~dp0
attrib -R -A -S -H *.*
RMDIR /S /Q "%WINDIR%\Setup\Scripts"
exit                                                                                                                                                把里面Windows Loader.exe换成123.exe /A合并在一起保存为SetupComplete.cmd
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|捐助支持|无忧启动 ( 闽ICP备05002490号-1 )

闽公网安备 35020302032614号

GMT+8, 2024-12-3 08:34

Powered by Discuz! X3.3

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表