Hi community,
I need to write a batch file which shows me all .ini .bat and .txt files in the c:\windows folder side by side. After every file found I need a PAUSE before the next file is searched.
I am kinda lost and I dont have any idea how to do that. Do I need to use the DIR or SET cmd?
How to search for .ini .bat files in the Windows folder
Moderator: DosItHelp
-
- Posts: 1
- Joined: 09 Jan 2022 10:40
Re: How to search for .ini .bat files in the Windows folder
Untested:
Something about like that.
Steffen
Code: Select all
@echo off &setlocal
pushd "C:\Windows"
for /f "delims=" %%i in ('dir /a-d /b /s *.ini *.bat *.txt') do echo "%%~i"&pause
popd
Steffen
Re: How to search for .ini .bat files in the Windows folder
Code: Select all
find "*.ini" %windir%
Re: How to search for .ini .bat files in the Windows folder
And what is about
SteffenAfter every file found I need a PAUSE before the next file is searched.
Re: How to search for .ini .bat files in the Windows folder
I get an access ddenied error when i run the "find" command but i have used this line many times before!dimitree#_# wrote: ↑09 Jan 2022 10:57Hi community,
I need to write a batch file which shows me all .ini .bat and .txt files in the c:\windows folder side by side. After every file found I need a PAUSE before the next file is searched.
I am kinda lost and I dont have any idea how to do that. Do I need to use the DIR or SET cmd?
:start
find /i "*.ini" %windir%
pause
goto :start
Re: How to search for .ini .bat files in the Windows folder
You didn't even try your code, did you?
Steffen
Steffen