Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Open My Computer
Message
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00834144
Message ID:
00834799
Views:
28
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--
Previous
Reply
Map
View

Click here to load this message in the networking platform