Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Run /n music.m3u
Message
 
 
À
25/08/2002 17:03:57
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00693412
Message ID:
00693470
Vues:
24
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--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform