Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using shellexecute
Message
From
24/08/2004 05:01:16
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
24/08/2004 04:23:20
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00935840
Message ID:
00935844
Views:
24
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform