Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Andy Kramek
  Where is Andy Kramek?
 Hot Springs Village
 Arkansas - United States
 Andy Kramek
 To: Massimo Tombesi
  Where is Massimo Tombesi?
 
 Italy
 Massimo Tombesi
 Tags
Subject: RE: how to do regsvr32 with VFP
Thread ID: 143059 Message ID: 143282 # Views: 2 # Ratings: 0
Version: Visual FoxPro 9 Category: Install & Config. issues
Date: Monday, August 27, 2007 1:12:48 PM         
   


> Excuse-me for the question, that is very like to be trivial, but can you explain why a code like this:
>
> ! regsevr32 C:\MyAppDir\Ocx\RICHTX32.OCX
>
> shouldn't be used, at least until the command "RUN" is accepted (VFP8, WinXp)?

Because the RUN (!) command is a DOS command, and runs outside of the windows shell. The way to run a console application like RegSvr32 inside the windows environment is to use SHELLEXECUTE(). Apart from anything else you actually get a status report on the function call to tell if it succeeded, and even why it failed if it didn't.

Regards
Andy Kramek
Microsoft MVP (Visual FoxPro)
Tightline Computers Inc, Akron Ohio, USA

ENTIRE THREAD

how to do regsvr32 with VFP Posted by Nilson Rishi @ 8/24/2007 10:38:46 AM
RE: how to do regsvr32 with VFP Posted by Eric den Doop @ 8/24/2007 10:50:53 AM
RE: how to do regsvr32 with VFP Posted by Nilson Rishi @ 8/25/2007 3:14:32 AM
RE: how to do regsvr32 with VFP Posted by Andy Kramek @ 8/24/2007 12:26:47 PM
RE: how to do regsvr32 with VFP Posted by Nilson Rishi @ 8/25/2007 3:16:56 AM
RE: how to do regsvr32 with VFP Posted by Ahsan Rana @ 8/25/2007 8:07:28 PM
RE: how to do regsvr32 with VFP Posted by Eric den Doop @ 8/25/2007 8:56:25 PM
RE: how to do regsvr32 with VFP Posted by Andy Kramek @ 8/25/2007 9:47:08 PM
RE: how to do regsvr32 with VFP Posted by Massimo Tombesi @ 8/26/2007 11:15:14 AM
RE: how to do regsvr32 with VFP Posted by Ken Murphy @ 8/26/2007 3:47:35 PM
RE: how to do regsvr32 with VFP Posted by Andy Kramek @ 8/27/2007 1:12:48 PM