Merci pour les infos...
J'arrive a ce code maintenant
1 2 3 4 5 6 7 8 9 10
|
@echo off
REG QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Print\Printers" /v "TOSHIBA e-STUDIO555Series PS3 Photocopieur"
if errorlevel 1 goto install
goto end
:install
echo install stuff
exit
:end
echo closing |
selon regedit
j'ai la clé
Printer et ensuite en dessous
TOSHIBA e-STUDIO555Series PS3 Photocopieur
TOSHIBA e-STUDIO555Series PS3 2ieme
peut importe si la clé est là ou non le batch poursuit et affiche le echo :install stuff
de ce que je vois mon erreur se situe sur le reg query?
Partager