rss
FilesPlus
Search : in
By : Relevance Date Username
Statut : Not resolved

Batch Script for finding the files

anilchand6, on Monday June 9, 2008 11:30:09 AM
Hello,



I am new to scripting so excuse me if I am anything silly.
I need a batch script and my requirement is as follows:
I have some file names (around 30)and I can put them in a text file (say test1.txt) and I want a script to search these files in C: drive and as a output generate a text file which says filename1 YES (means its present) otherwise say filename1 NO.
If anyone can help me I would be highly thankful.
Configuration: Windows XP
Internet Explorer 6.0
Reply to anilchand6  Report this message to moderators Go to last message

1


  • This message seems useful, vote!
  • Report this message to moderators
 kailashpon, on Monday June 9, 2008 03:37:31 PM
Hai


Save the following batch as e.g. look.bat

@echo off
for /f "tokens=* delims=" %%j in (test1.txt) do (
dir /S /B "C:\%%j" | find /I "%%j" > Nul
if errorlevel 1 (echo."%%j" NO) else (echo."%%j" YES)
)
:: End_Of_Batch

then type at prompt

look > out.txt

and you get your list in out.txt
Reply to kailashpon
Software found in the relevant downloads
Download SoftPerfect File Recovery 1.2SoftPerfect File Recovery - SoftPerfect File Recovery is a free and useful tool to restore accidentally deleted files from hard and floppy disks, USB...Category: Backup
License: Freeware/gratuit
Download PC Inspector File Recovery 4.0PC Inspector File Recovery - PC INSPECTORâ„¢ File Recovery is a data recovery program that supports the FAT 12/16/32 and NTFS file systems. Finds...Category: Backup
License: Freeware/gratuit
Download FileZilla Client 3.0.11.1FileZilla Client - Possibilty to download a version compatible with Linux or MacOS <h2> </h2> FileZilla Client is a fast and reliable...Category: FTP
License: Open Source
Download FileZilla Server 0.9.25FileZilla Server - FileZilla Server is an FTP server supports FTP and FTP over SSL/TLS.Category: FTP
License: Open Source
More freeware about « Batch Script for finding the files »