Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Rinning Word Perfect withour knowing the path?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00164529
Message ID:
00164654
Views:
16
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
Previous
Reply
Map
View

Click here to load this message in the networking platform