Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Shellexecute not working
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00397198
Message ID:
00397339
Vues:
13
>Can anyone tell me what I am doing wrong here:
>
>
>DECLARE INTEGER ShellExecute IN "Shell32.dll" ;
> INTEGER HWND, ;
> STRING lpVerb, ;
> STRING lpFile, ;
> STRING lpParameters, ;
> STRING lpDirectory, ;
> LONG nShowCmd
>=Shellexecute(0,"Open","d:\VFPAPPS\APPDOCS\PROCS.TXT","","",0)

Rather than 0 for the last parameter, try 5; 5 is an SW_SHOW, 1 is SW_SHOWNORMAL, both of which display it, but 0 is SW_HIDE.

>
>
>I have this in a click event. I am trying to open up a text file in notepad but all it does is show an hour glass very briefly and then nothing. I am stumped.
>

If it's just a text file, why not use the built-in editor:

MODIFY FILE ("d:\VFPAPPS\APPDOCS\PROCS.TXT") &&NOWAIT if modeless

>Thanks,
>George
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform