Guest User

Untitled

a guest
Mar 3rd, 2023
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 0.42 KB | None | 0 0
  1. @echo off
  2. setlocal enabledelayedexpansion
  3. set toFind="\Жизнь\. "
  4.  
  5. for %%d in (A B C D E F G H I J K L M N O P Q R S T U V W X Y Z) do (
  6.     if exist %%d:\  (
  7.         echo ---- checking drive %%d ----
  8.         cd /d "%%d:\"
  9.         echo %%d:\
  10.         for /r "." %%a in (.) do (
  11.             set fname=%%a
  12.             set fname=!fname:~-9!
  13.             echo folder:%%a
  14.             if "!fname!"==%toFind% (
  15.                 echo Found:%%a
  16.                 pause
  17.                 exit
  18.             )
  19.         )
  20.      )
  21. )
  22.  
Advertisement
Add Comment
Please, Sign In to add comment