
标题: [代码合集] [分享]批处理一键静默安装NVIDIA&AM显卡驱动程序 [打印本页]
作者: yakeyun 时间: 2022-10-16 13:44 标题: [分享]批处理一键静默安装NVIDIA&AM显卡驱动程序
本帖最后由 yakeyun 于 2022-10-18 10:07 编辑
AMD显卡安装:- @echo off & setlocal enabledelayedexpansion
- title AMD显卡驱动一键静默安装程序 by.SanLi
- color 07
- mode con: cols=80 lines=25
- chcp 936 >nul
- echo %date%%time% 显卡驱动数据释放中,请稍等...
- CALL .\AMD.exe /S
- tasklist|Find "AMDSoftwareInstaller.exe" >nul && (
- for /f "delims=" %%i in ('wmic Process Where "Name='AMDSoftwareInstaller.exe'" Get ExecutablePath /Value') do set %%i >nul
- taskkill /im AMDSoftwareInstaller.exe 1>nul 2>nul
- )
- echo %date%%time% 显卡驱动程序安装中,请稍等...
- for /f "tokens=1-3* delims=\" %%t in ('echo %ExecutablePath%') do call "%%t\%%u\%%v\Setup.exe" "-Install"
- echo %date%%time% 显卡驱动程序安装完毕!
- pause >nul
- exit
复制代码

AMD在线下载,并自动安装命令:- @echo off & setlocal enabledelayedexpansion
- title AMD显卡驱动在线一键静默安装程序 by.SanLi
- color 07
- mode con: cols=80 lines=25
- chcp 936 >nul
- echo %date%%time% 显卡驱动数据下载释放安装中,请稍等...
- curl -C - -o %USERPROFILE%\AMD.EXE https://drivers.amd.com/drivers/amd-software-adrenalin-edition-22.10.1-win10-win11-oct4.exe & Call %USERPROFILE%\AMD.exe /S
- tasklist|Find "AMDSoftwareInstaller.exe" >nul && (
- for /f "delims=" %%i in ('wmic Process Where "Name='AMDSoftwareInstaller.exe'" Get ExecutablePath /Value') do set %%i >nul
- taskkill /im AMDSoftwareInstaller.exe 1>nul 2>nul
- )
- echo %date%%time% 显卡驱动程序安装中,请稍等...
- for /f "tokens=1-3* delims=\" %%t in ('echo %ExecutablePath%') do call "%%t\%%u\%%v\Setup.exe" "-Install"
- echo %date%%time% 显卡驱动程序安装完毕!
- pause >nul
- exit
复制代码
NVIDIA显卡安装:- @echo off & setlocal enabledelayedexpansion
- title NVIDIA显卡驱动一键静默安装程序 by.SanLi
- color 07
- mode con: cols=80 lines=25
- chcp 936 >nul
- echo %date%%time% 显卡驱动数据释放安装中,请稍等...
- CALL .\NVIDIA.exe /s
- echo %date%%time% 显卡驱动程序安装完毕!
- pause >nul
- exit
复制代码
NVIDIA在线下载,并自动安装命令:- @echo off & setlocal enabledelayedexpansion
- title NVIDIA显卡驱动在线一键静默安装程序 by.SanLi
- color 07
- mode con: cols=80 lines=25
- chcp 936 >nul
- echo %date%%time% 显卡驱动数据下载释放安装中,请稍等...
- curl -C - -o %USERPROFILE%\NVIDIA.EXE https://cn.download.nvidia.cn/Windows/517.48/517.48-desktop-win10-win11-64bit-international-dch-whql.exe & Call %USERPROFILE%\NVIDIA.EXE /s
- echo %date%%time% 显卡驱动程序安装完毕!
- pause >nul
- exit
复制代码
作者: 小白龙 时间: 2022-10-16 18:49
回复 1# yakeyun
感谢分享
应该只能适用Win7以上的系统,
AMD显卡驱动安装没有官网下载地地吗?
作者: yakeyun 时间: 2022-10-18 09:58
本帖最后由 yakeyun 于 2022-10-18 10:08 编辑
回复 2# 小白龙
AMD的链接直接在AMD官网可以获取,可以借鉴N卡在线方法,将代码换成AMD的就行了。如果再借助GPU-Z,就可以自动判断显卡类型,并自动从网络获取驱动包安装。
AMD在线版代码已添加
作者: 小白龙 时间: 2022-10-18 13:23
回复 3# yakeyun
多谢分享
作者: qq1054737860 时间: 2025-3-28 20:47
@echo off & setlocal enabledelayedexpansion
title NVIDIA显卡驱动一键静默安装程序 by.SanLi
color 07
mode con: cols=80 lines=25
chcp 936 >nul
echo %date%%time% 显卡驱动数据释放安装中,请稍等...
CALL .\NVIDIA.exe /s
echo %date%%time% 显卡驱动程序安装完毕!
pause >nul
exit
这代码好像不适合win10 22h2以上的吧
欢迎光临 批处理之家 (http://www.bathome.net/) |
Powered by Discuz! 7.2 |