Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Rinning Word Perfect withour knowing the path?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00164529
Message ID:
00164654
Vues:
19
Try this - you'll need to choose a suitable document name (e.g. test.wpd) and make sure that buffer genuinely contains xxx.exe (the program you are looking for - .wpd might be associated with someting else)

declare long FindExecutable in "shell32.dll" ;
string lpFile, string lpDirectory, string @lpResult

buffer = space(2000)
result = FindExecutable("c:\test.doc", "c:\", @buffer)
if result < 32
messageBox("** FAILED **")
else
messageBox("--- success --- [" + alltrim(buffer) + "]")
endif
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform