April 10, 200422 yr I'm trying to create a .cmd file which i've completed except one little bitI have a file downloaded automatically, I want to compare this to a file i already have. If the new file is different to the old file then to do some other commands (already written).When I mean the files are different i mean in terms of file size.If anyone can help i'm looking for a way to compare newfile.exe to oldfile.exethen return a boolean (true/false) so I can use that in an if statemente.g.if (oldfile.exe is different to newfile.exe) do some commandsendifI'm not sure how you can compare two files and return a boolean (true/false) so I can do my if statement.thanks Rob
April 11, 200422 yr Some basic programming code would be your best bet. As in Visual Basic, Visual C++, or maybe even QBasic. I'm not aware of a DOS command that runs a size compare...or even gets and stores the file's sizes in RAM for comparison then Prints it on screen.
Create an account or sign in to comment