Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Hyperlink
Message
De
14/11/2000 18:04:27
 
 
À
14/11/2000 17:42:27
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00441864
Message ID:
00441904
Vues:
17
>>That makes it open in internet explorer, but how can i make it open up in windows nt explorer?
>>Thanks,
>>Ryan
>
>Read, Trey, read... :(
>
>Forget what I said, use the ShellExecute API call instead.
>This is a program I got off West Wind - I call it ShellEx.prg
LPARAMETER lcLink, lcAction, lcParms
>
>lcAction = IIF(EMPTY(lcAction), "Open", lcAction)
>lcParms = IIF(EMPTY(lcParms), "", lcParms)
>
>DECLARE INTEGER ShellExecute ;
>    IN SHELL32.dll ;
>    INTEGER nWinHandle, ;
>    STRING cOperation, ;
>    STRING cFileName, ;
>    STRING cParameters, ;
>    STRING cDirectory, ;
>    INTEGER nShowWindow
>
>DECLARE INTEGER FindWindow ;
>   IN WIN32API ;
>   STRING cNull,STRING cWinName
>
>RETURN ShellExecute(FindWindow(0, _SCREEN.caption), ;
>                    lcAction, lcLink, ;
>                    lcParms, SYS(2023), 1)
Call it for this case with
>ShellEx("c:\directory","Explore")

You work too hard...there's a _shellexecute class in the FFC! And if you're reasonably certain that you've got a current revision OS, you can also use Shell.Application:

oSH = CREATEOBJ('Shell.Application')
oSH.Open("C:\Directory")
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform