Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using shellexecute
Message
De
24/08/2004 05:01:16
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
24/08/2004 04:23:20
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00935840
Message ID:
00935844
Vues:
26
This message has been marked as the solution to the initial question of the thread.
>To run Wordpad it can be used next command:
>
>ThisForm.MyShell.Shellexecute("C:\Program Files\Windows NT\Accessories\wordpad.exe")
>Where MyShell is object _shellexecute of _environ.vcx
>
>How run and open file in Wordpad?

I don't know the class. With directly using the ShellExecute API instead :
declare long ShellExecute in "shell32.dll" ;
	long hwnd, string lpszOp, ;
	string lpszFile, string lpszParams, ;
    string lpszDir, long nShowCmd

lcFileToOpen = '"C:\My Folder\MyFile.txt"'
ShellExecute(0,'Open',;
  '"C:\Program Files\Windows NT\Accessories\wordpad.exe"',;
  m.lcFileToOpen,'',1)
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform