Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Activate a HTML File from a command button
Message
 
 
À
15/12/2003 15:46:11
Information générale
Forum:
Visual FoxPro
Catégorie:
Applications Internet
Divers
Thread ID:
00859277
Message ID:
00859285
Vues:
16
You can use ShellExecute API #12636 or WSH Run method http://msdn.microsoft.com/library/default.asp?url=/library/en-us/script56/html/wsMthRun.asp.
lcFileName = FULLPATH("apss.html")
* ShellExecute
DECLARE INTEGER ShellExecute IN shell32.dll ;
	INTEGER hndWin, STRING cAction, ; 
	STRING cFileName, STRING cParams, ; 
	STRING cDir, INTEGER nShowWin
ShellExecute(0, "Open", lcFileName, "", "", 1)
*WSH
oShell = CREATEOBJECT('WScript.Shell')
oShell.Run(lcFileName)
>I am trying to launch a html file from a command button. I have tried the
>getfile() method but you have to select the file you want. I want it to do
>it automately "(apss.html"). How can I do did?
>
>
>Thank You In Advance and Merry Christmas To All
>
>
>Winfred Majors
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform