Search found 3 matches
- 01 Feb 2010 13:34
- Forum: DOS Batch Forum
- Topic: compare files and echo message
- Replies: 7
- Views: 9740
Re: compare files and echo message
Thanks. Now I have a different issue. If the two files are different but empty it is giving the wrong message. Is there a way I can check the timestamps of the files before I do the fc. fc T:\data\test.dat T:\arch\test.dat >nul &&(echo File already processed.. >>T:\ftp\test.log goto end) ||(...
- 28 Jan 2010 09:23
- Forum: DOS Batch Forum
- Topic: compare files and echo message
- Replies: 7
- Views: 9740
Re: compare files and echo message
Thanks !k. it worked. God I spent so much time on that....
What is the equivalent of unix 'Sleep' command in windows? I need the program to sleep sometime when doing the file comparison assuming that I could get big files to compare.
Thanks
Pink
What is the equivalent of unix 'Sleep' command in windows? I need the program to sleep sometime when doing the file comparison assuming that I could get big files to compare.
Thanks
Pink
- 21 Jan 2010 08:27
- Forum: DOS Batch Forum
- Topic: compare files and echo message
- Replies: 7
- Views: 9740
compare files and echo message
How do I compare two files? fc c:\data\myfile.txt c:\arch\myfile.txt this is working fine. now i want to echo in log file if they are same. if they are not same i need to check the size of the file. if it is zero echo in log file. I dont know how to check the file is same or different. Any help is a...