Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- set FILENAME=autorun.inf
- set DRIVERLIST=a,b,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,d,c
- FOR %%d in (%DRIVERLIST%) do (
- FOR /F "delims=" %%f in ('dir /B /S %%d:\%FILENAME%') do (
- set LETTER=%%d
- IF EXIST "%%d:\%FILENAME%" goto TRAITEMENT
- )
- )
- :TRAITEMENT
- echo Fichier trouvé dans le lecteur %LETTER% !
- --- Votre code de traitement à insérer ici
- exit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement