> >
> > Tushar,
> > Some time some users minimize applicaton and gone out of office for some time but his system are locked then i can't updating exe on server because giving message some users are used this file.
> >
> > So i want to restart on this computer.
> >
> > Thanks
> >
> > Vinod Kabdal
>
> You do not need to get the users out for that. What you need to do is to have a loader exe. All this exe will do is check which is the latest exe file and call that. What I do is have a DBF file called LATEST.DBF with 1 record and 1 field. In this field I keep the name of the latest executable file. The shortcut points to loader.exe which has the following code
>
>
LOCAL lcEXEName,lnEXE,laEXE,lcEXESource
> use latest
> lcEXEName=alltrim(Latest)
> use
> lnEXE=ADIR(laEXE,lcEXEName)
> if lnEXE=0
> lcEXESource='\\Server\Shared\'+lcEXEName
> COPY FILE (lcEXESource) TO (lcEXEName)
> endif
> do (lcEXEName)
>
> So when updating, I give a new name to the exe and put that name in latest.dbf. The next time the person starts the software, he will get the latest exe to run.
>
> Regards
> Tushar
Hi Tushar,
Your Idea is good so i am giving a rank to you but our exe have checked other exe name not run(Given MsgBox Validate Exe Run)in our exe our company policy is ExeName should be same name then how i can deside Latest Exe (Can't Create in one More exe name will be same).
Thanks
Vinod Kabdal