Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ShellExecute
Message
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Title:
Miscellaneous
Thread ID:
00777580
Message ID:
00777638
Views:
10
Which error code ShellExecute returns? May be try this procedure instead:
= RunCmd2('notepad', 'c:\myfile.txt')

PROCEDURE RunCmd2(cApp, cParam)
	DECLARE INTEGER WinExec IN kernel32;
		STRING lpCmdLine, INTEGER nCmdShow
	LOCAL nResult
	nResult = WinExec(cApp + " " + cParam, 1)
	IF nResult <= 31
		= MessageBox('WinExec error code: ' + LTRIM(STR(nResult)))
	ENDIF
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform