Results 1 to 3 of 3

Thread: [RESOLVED] Comparing EXE Files

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jul 2005
    Location
    Bulawayo, Zimbabwe
    Posts
    576

    Resolved [RESOLVED] Comparing EXE Files

    I have written an app which operates a database accross a network VB6 and Access. I am constantly upgrading the software which means going to all machines on which the app is installed and copying the new EXE file from a flash drive onto each machine.
    Because these machines are all on a common network and communicate with a common database I was hoping that each machine could upgrade its own exe file by copying a later version from the server onto a designated directory on the users own machine.
    This could easily be done with FileCopy My question is :
    Is there any way in VB6 to compare the 2 Exe files and only if the exe file on the server is a later version then the FileCopy will take place if the file is the same then no copy will occur?

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Comparing EXE Files

    Use the FileDateTime function. This will give you the date/time stamp of any file.

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Jul 2005
    Location
    Bulawayo, Zimbabwe
    Posts
    576

    Re: Comparing EXE Files

    Thanks Hack

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width