i tried it more than 50 times!!
And yet all we have on this end is 5 lines that you've cobbled together from other peoples code.
IF you would show the entire batch file when you post your issue you will be FAR more likely to get valid responses.
Additionally I might add that ghostdogs post was 100% relevant. the code as you had it was:
dir/b java2.exe
And you wanted to find out how to find other files other then java2.exe. He was merely explaining that, if you know how to use dir, you can simply modify that portion of your batch, so that the output from dir includes more files.
Devcom built further upon this concept by using additional switches of dir to exclude any directories from the output listing. Although I must question the educational value of code without an explanation...
Regarding your query of Checksums, there are a number of command-line programs that can return the checksum of a given file. One could run the checksum utility on the file, assemble a string, such as "filename=checksum", search a predesignated file for the filename, if found but the checksum isn't equal, display your attention 2 string, otherwise the check suceeded. If filename= isn't found then write it to the file, since no such file has been checksummed yet.
As a final note I'd like to add, as others have done before, that this is NOT "rentacoder" or some similarly themed website, where visitors enter their requirements and recieve results in the form of code. Giving you code helps you in the short term but only hinders you in the long term, as you continue to return here with simple batch program requirements that you for some reason refuse to learn on your own.
We'll help you learn new switches, new ways of doing things, etc, direct you about which other languages might do the job better (ghostdog excels at this
), but we're not about to just give you the code without you learning a *censored* thing about how it works, or even the basic syntax that makes up the command itself.
real programs aren't pasted together from bits of other peoples code. their sculpted. Or some other equally artistic metaphor.