Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Calling Notepad from VFP
Message
From
17/08/2004 16:15:47
 
 
To
16/08/2004 08:56:05
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00933510
Message ID:
00933923
Views:
23
Use ShellExecute (API function)

Ex: DECLARE INTEGER ShellExecute IN SHELL32.DLL INTEGER p1, STRING p2, STRING p3, STRING p4, STRING p5, INTEGER p6
p1=0
p2='Open'
p3='c:\notepad.txt'
p4=''
p5=''
p6=1

lnReturn=ShellExecute(p1,p2,p3,p4,p5,p6)

Be sure the file exists. In case of error, lnReturn helps too.
To have notepad window maximized or minimized or other facilities-play with the parameters- you may need to read the MSDN documentation for that too.
Previous
Reply
Map
View

Click here to load this message in the networking platform