Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can I run VFP from explorer wnd my program within it
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
01632123
Message ID:
01632139
Views:
42
run this code from vfp and point to your exe.it point you the associated application able to run your exe.
otherwise must set in explorer your association.
in principe if vfp installed on system, it can open your exe file in all cases !
this code makes only a confirmation
Declare Integer FindExecutable In Shell32.Dll ;
	string lpFile, ;
	string lpDirectory, ;
	string @lpResult

lcResult = Space(100)
lcFile = Getfile()     &&or put here your executable
If Empty(lcFile)
	retun
Endi

lcPath = Justpath(lcFile)      
lnSuccess = FindExecutable(lcFile,lcPath,@lcResult)
If lnSuccess <= 32
	Messagebox("Cannot find the associated program")  &&then create association(explorer, rightclick,open with...(always)
Else
	Messagebox("Associated program is "+lcResult)
Endif
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform