Computing.Net > Forums > Programming > Compare all files using FC /b

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Compare all files using FC /b

Reply to Message Icon

Name: Ajukason
Date: April 2, 2009 at 05:52:45 Pacific
OS: Windows XP 2
Subcategory: Batch
Comment:

Hi,
I need to compare all my files in all directories & subdir to a "Specified File" in binary to check whether they are similar, using FC /b. Is it possible?

Else, i ECHOed all directories using ATTRIB /s to a .txt file and wishing to have a solution (batch file ) to replace the attributes and insert automatically: FC /b "mydirectory" "my specified file"
...then ill rename it as .bat file to execute all commands. Does anyone know how to replace and insert text in the beggining using DOS command?


THANKS in ADVANCE! =)


PS

this is the ECHOed ATTRIB /s in *.txt:

A Z:\01.exe
A S D:\02.txt
A SHR Z:\asdf\03.exe
A Z:\asdf.ed

This is what i need: (ert.txt = my specified file)

FC /b "D:\01.exe" "C:\ert.txt"
FC /b "Z:\02.txt" "C:\ert.txt"
FC /b "Z:\asdf\03.exe" "C:\ert.txt"
FC /b "Z:\asdf.ed" "C:\ert.txt"

--------XD-------ajukason----------



Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Compare all files using FC /b

How to compare 2 files using awk? www.computing.net/answers/programming/how-to-compare-2-files-using-awk/15598.html

find 2txt files and compare with fc www.computing.net/answers/programming/find-2txt-files-and-compare-with-fc/18545.html

Renaming files using name of subdirectories www.computing.net/answers/programming/renaming-files-using-name-of-subdirectories/19880.html