Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Do this, Do that...
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00102329
Message ID:
00103023
Vues:
37
> ...My launcher.exe doesn't always detect that the network.exe is more recent than the local.exe though. Would you be willing to shoot me the piece of code that checks for most recent exe? I am interested in what approach you took to compare datetime for exe. BTW - That run command works fine for me also...thanks Josh!

Interesting you should mention the version detection problem :) I had same thing, my launcher would not detect the comparison:

if fdate(server.exe) = fdate(local.exe);
AND ftime(server.exe) > ftime(local.exe)
&& then do copy
endif

I finally just did something like:
do case
  case !directory(local)
    && then do netsetup
  case !file(local.exe)
    && then do copy
  case fdate(server.exe) > fdate(local.exe)
    && then do copy
  case ftime(server.exe) > ftime(local.exe)
    && then do copy
endcase
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform