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:
00834799
Vues:
29
You're welcome.

>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?
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform