Batch Script to Find a Folder inside Sub Folders and get Folder Path

后端 未结 1 1530
不思量自难忘°
不思量自难忘° 2021-01-12 14:07

I am trying to come up with a batch file that will perform the following:

  1. Ask the user to input a name. If no name was given, ask again.
  2. Search all s
相关标签:
1条回答
  • 2021-01-12 15:03
    @echo off
    for /d /r "c:\temp" %%a in (*) do if /i "%%~nxa"=="apples" set "folderpath=%%a"
    echo "%folderpath%"
    
    0 讨论(0)
提交回复
热议问题