Search found 3 matches

by jmair
31 Oct 2019 15:00
Forum: DOS Batch Forum
Topic: If statement compare two files.
Replies: 4
Views: 6705

Re: If statement compare two files.

Do you know if there is a way to NOT prompt in Windows 7? Win7 doesn't seam to have a /M argument with that version of comp.
I have 400 local machines (non domain) I need to put a batch file on to compare files and unfortunately about half of them are old windows 7 thin clients.
by jmair
31 Oct 2019 07:03
Forum: DOS Batch Forum
Topic: If statement compare two files.
Replies: 4
Views: 6705

Re: If statement compare two files.

Penpen, thank you! You're a life saver. This works perfectly.
by jmair
30 Oct 2019 15:57
Forum: DOS Batch Forum
Topic: If statement compare two files.
Replies: 4
Views: 6705

If statement compare two files.

I need a quick way to see if there is a different file, and if there is to copy said file and replace the first file.
The below works fine, however i'm not sure how to add the return into a variable. Any advice would be welcomed.
comp sample1.txt sample2.txt /m