Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Do this, Do that...
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00102329
Message ID:
00103023
Views:
39
> ...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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform