Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ShellExecute function
Message
 
À
17/08/2001 15:09:46
Alex Zhadanov
Computer Generated Solutions
New York City, New York, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00545589
Message ID:
00545594
Vues:
32
>Hi, all
>I have problem to open .txt file in notepad.
>this is a short code:
>
>DECLARE INTEGER ShellExecute IN "Shell32.dll" ;
> INTEGER hwnd, ;
> STRING lpVerb, ;
> STRING lpFile, ;
> STRING lpParameters, ;
> STRING lpDirectory, ;
> LONG nShowCmd
>lfile = "E:\MKTCONVERT\ExportStatus.txt"+chr(0)
>=ShellExecute(0,"open",lfile,"","",0)
>It 's not working
>When i replace txt file with .doc file it works.
>I tried this =ShellExecute(0,"open","notepad.exe","","",0) but it's not working
>I tried on different computer the same results.
>Thank you.
>Alex

If you open up the file in windows explorer does it open notepad?

If not you may need to identify .txt with an application to use.
Bret Hobbs

"We'd have been called juvenile delinquents only our neighborhood couldn't afford a sociologist." Bob Hope
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform