Skip to content
View in the app

A better way to browse. Learn more.

MSFN

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

comparing two files (command prompt) - win2k

Featured Replies

I'm trying to create a .cmd file which i've completed except one little bit

I 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.exe

then return a boolean (true/false) so I can use that in an if statement

e.g.

if (oldfile.exe is different to newfile.exe)

do some commands

endif

I'm not sure how you can compare two files and return a boolean (true/false) so I can do my if statement.

thanks Rob :)

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

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.