Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- chcp 65001 1>nul
- for /f %%a in ('wmic /namespace:\\root\microsoft\windows\storage path msft_disk get bustype^|findstr [0-9]') do set "variable=%%a"& goto :termine
- :termine
- echo Résultat de la requête : %variable%
- if %variable% EQU 17 (
- echo Lecteur M2 détecté
- rem start "c:\windows\cfgwin\cfgwin_x64.exe" /r /path:c:\windows\cfgwin\lenovo710QM2.cfg /admin:password >> c:\windows\cfgwin\cfgwin.log
- ) else (
- echo Lecteur non M2 détecté
- rem start "c:\windows\cfgwin\cfgwin_x64.exe" /r /path:c:\windows\cfgwin\lenovo710Q.cfg /admin:password >> c:\windows\cfgwin\cfgwin.log
- )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement