Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Open My Computer
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00834144
Message ID:
00834794
Vues:
28
Thanks Sergey.


>Hi John,
>
>It's included in Windows 2000/XP. You can also use ShellExecute() Windows API function.
DECLARE INTEGER ShellExecute IN "Shell32.dll" ;
>    INTEGER hwnd, ;
>    STRING lpVerb, ;
>    STRING lpFile, ;
>    STRING lpParameters, ;
>    STRING lpDirectory, ;
>    LONG nShowCmd
>=Shellexecute(0,"", GETENV("SystemRoot") + "\explorer.exe"," /n, /select, c:","", 1)
>
>>Thanks Sergey
>>
>>That’s exactly what I wanted.
>>
>>Is wscript.shell part of Windows XP or will I have to install it on some machines?
>>
>>Thanks.
>>
>>John
>>
>>>
>>>Try
oShell = Createobject("wscript.shell")
>>>oShell.Run("%SystemRoot%\explorer.exe /n, /select, c:")
>>>
See also Windows Explorer Command-Line Options mskb #152457.
>>>
>>>
>>>>How can I open Windows XP My Computer from VFP7?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform