Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Danson Danson
  Where is Danson Danson?
 Nairobi
 Kenya
 Danson Danson
 To: Jun Tangunan
  Where is Jun Tangunan?
 Cabanatuan
 Philippines
 Jun Tangunan
 Tags
Subject: RE: Wrong parameters
Thread ID: 310599 Message ID: 310729 # Views: 26 # Ratings: 0
Version: Visual FoxPro 9 SP2 Category: Windows 7 and VFP
Date: Thursday, June 23, 2011 9:40:22 PM         
   


> > Hi all,
> >
> > I have been using the following code to access the system
> > monitor WIN XP but this code is not working in WIN 7.
> > The error is shown below, any help?
> >
> > Code:
> >
> > DECLARE INTEGER ShellExecute IN shell32.dll ; 
> >   INTEGER hndWin, ; 
> >   STRING cAction, ; 
> >   STRING cFileName, ; 
> >   STRING cParams, ;  
> >   STRING cDir, ; 
> >   INTEGER nShowWin
> > Local lcParam
> > lcParam = "shell32.dll,Control_RunDLL intl.cpl,,0"
> > ShellExecute(0, "open", "perfmon.exe", m.lcParam, "", 1)
> > 

> >
> > Error in WIN 7 but working fine in WIN XP
> >
> >
>
>
> Try replacing your parameter with /sys:
>
>
DECLARE INTEGER ShellExecute IN shell32.dll ; 
>   INTEGER hndWin, ; 
>   STRING cAction, ; 
>   STRING cFileName, ; 
>   STRING cParams, ;  
>   STRING cDir, ; 
>   INTEGER nShowWin
> Local lcParam
> *lcParam = "shell32.dll,Control_RunDLL intl.cpl,,0"
> lcParam = "/sys"
> ShellExecute(0, "open", "perfmon.exe", m.lcParam, "", 1)
> 
> 

>
> http://sandstorm36.blogspot.com/
> http://weblogs.foxite.com/sandstorm36/default.aspx
> http://www.coderisland.com/forum/viewforum.php?f=10

Thanks Jun,
I got the idea.

ENTIRE THREAD

Wrong parameters Posted by Danson Danson @ 6/22/2011 9:09:39 PM
RE: Wrong parameters Posted by Yousfi Benameur @ 6/22/2011 10:26:57 PM
RE: Wrong parameters Posted by Danson Danson @ 6/23/2011 9:39:03 PM
RE: Wrong parameters Posted by Jun Tangunan @ 6/23/2011 4:58:32 AM
RE: Wrong parameters Posted by Danson Danson @ 6/23/2011 9:40:22 PM