Click here to Skip to main content
15,897,160 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
Hello People I wanted to make a batch file do something if the number of a text file has the text changed. Like if a text file text is 1.0 in the file cver.txt and I change it to 1.3 How do I make the batch file notice that and display text saying
the file cver.txt has changed please go and get it!


How do I do this? Please help!!!
Posted
Updated 6-Nov-13 17:27pm
v2

One option would be to record the current number in a database somewhere, then compare that to the version of the file.
 
Share this answer
 
Comments
Braydon 7-Nov-13 8:44am    
Well this is a drop box link if you where wondering.
I am not sure but I guess this will help you to get started. By the way this is based on power shell script and not batch file. This post for new files instead you can query for modified date and time. Check this link.

powershell-check-folder-for-new-files[^]
 
Share this answer
 
Comments
Braydon 7-Nov-13 8:45am    
I don't have power shell but thanks.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900