Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Vista problem
Message
De
06/09/2007 15:38:30
 
 
À
05/09/2007 14:05:24
Information générale
Forum:
Visual FoxPro
Catégorie:
Installation et configuration
Titre:
Divers
Thread ID:
01251167
Message ID:
01252870
Vues:
47
This message has been marked as the solution to the initial question of the thread.
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform