Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Run /n music.m3u
Message
 
 
To
25/08/2002 17:03:57
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00693412
Message ID:
00693470
Views:
25
This message has been marked as the solution to the initial question of the thread.
You've to declare function first.
DECLARE INTEGER ShellExecute IN "Shell32.dll" ;
    INTEGER hwnd, ;
    STRING lpVerb, ;
    STRING lpFile, ;
    STRING lpParameters, ;
    STRING lpDirectory, ;
    LONG nShowCmd
lcList = "Music.m3u"
?Shellexecute(0,"Open",lcList,"","",1)
You can also use WSH
oShell = CREATEOBJECT( "Wscript.Shell" )
lcList = "Music.m3u"
oShell.Run(lcList)
>Don't I need to create an object first?
>Peter
>
>
>>You can use ShellExecute Win Api function.
lcList = "Music.m3u"
>>?Shellexecute(0,"Open",lcList,"","",1)
>>
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform