Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. sponsors. rss.
 From: Jun Tangunan
  Where is Jun Tangunan?
 Cabanatuan
 Philippines
 Jun Tangunan
 To: vinod kabdal
  Where is vinod kabdal?
 Delhi
 India
 vinod kabdal
 Tags
Subject: RE: Shut Down all System in Network
Thread ID: 198256 Message ID: 198399 # Views: 30 # Ratings: 0
Version: Visual FoxPro 8 Category: Win32API programming
Date: Saturday, October 11, 2008 12:01:14 PM         
   


> >
> > 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

Hi Vinod, maybe this can help you. This is also an application loader which doesn't necessarily need tracking. Message ID: 189511.

Jun Tangunan
http://weblogs.foxite.com/sandstorm36/



COMPLETE THREAD
Shut Down all System in Network Posted by vinod kabdal @ 10/10/2008 8:10:01 AM
RE: Shut Down all System in Network Posted by Stefan Wuebbe @ 10/10/2008 8:18:35 AM
RE: Shut Down all System in Network Posted by vinod kabdal @ 10/10/2008 8:54:16 AM
RE: Shut Down all System in Network Posted by Stefan Wuebbe @ 10/10/2008 9:01:50 AM
RE: Shut Down all System in Network Posted by vinod kabdal @ 10/10/2008 9:13:17 AM
RE: Shut Down all System in Network Posted by Stefan Wuebbe @ 10/10/2008 9:17:31 AM
RE: Shut Down all System in Network Posted by vinod kabdal @ 10/10/2008 11:25:15 AM
RE: Shut Down all System in Network Posted by Stefan Wuebbe @ 10/10/2008 11:49:23 AM
RE: Shut Down all System in Network Posted by Stefan Wuebbe @ 10/10/2008 9:13:57 AM
RE: Shut Down all System in Network Posted by vinod kabdal @ 10/11/2008 1:45:25 PM
RE: Shut Down all System in Network Posted by tushar @ 10/10/2008 9:06:20 AM
RE: Shut Down all System in Network Posted by vinod kabdal @ 10/10/2008 11:20:57 AM
RE: Shut Down all System in Network Posted by tushar @ 10/10/2008 1:53:03 PM
RE: Shut Down all System in Network Posted by Kishore Kumar @ 10/10/2008 4:21:28 PM
RE: Shut Down all System in Network Posted by vinod kabdal @ 10/11/2008 9:29:57 AM
RE: Shut Down all System in Network Posted by tushar @ 10/11/2008 9:56:47 AM
RE: Shut Down all System in Network Posted by Jun Tangunan @ 10/11/2008 12:01:14 PM