Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Vista problem
Message
From
06/09/2007 19:48:51
 
 
To
06/09/2007 15:38:30
General information
Forum:
Visual FoxPro
Category:
Installation, Setup and Configuration
Title:
Miscellaneous
Thread ID:
01251167
Message ID:
01252902
Views:
22
>Hi Don.
>
>
>>*	lcSystem = oUtility.GetSystemDirectory()
>>*	try
>>*		oUtility.ShellExecute(lcSystem + 'odbcad32.exe', 'RunAs')
>>*		catch
>>*	endtry
>>
>>
>>*	lparameters tcFileName, ;
>>*		tcOperation, ;
>>*		tcWorkDir, ;
>>*		tcParameters
>>*set step on
>>
>>tcFileName = "tiplauncher.exe"
>>tcOperation = "Open"
>>tcWorkDir = "C:\Program Files\DFDS\TIP\"
>>tcParameters = "RunAs"
>
>Notice that you've changed the order of the parameters. The second parameter in my call to ShellExecute, which corresponds to the tcOperation parameter, is "RunAs". You've changed it so tcOperation is "Open" and "RunAs" is a parameter being passed to your EXE. Change tcOperation to "RunAs" and, since it doesn't look like your EXE needs a parameter, remove the PARAMETERS statement from it and set tcParameters in this code to "".
>
>Doug

Well that's a 'duh if ever I saw one. I did a copy and paste directly from your blog but it required a lot of formatting cleanup. I guessed I messed it up in the cleanup. Thanks for your patience and helpful review. Isn't UT great!

- Don
Previous
Reply
Map
View

Click here to load this message in the networking platform