Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SheelExecute query
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01623271
Message ID:
01623381
Vues:
48
>Hi Borislav. Thanks for replying
>Its 31 which I think means "There is no application associated with the given filename extension."
>Regards,
>Gerard
>
>
>>>Hi
>>>Have been using ShellExecute with Pdf file for a while without any issue
>>>Try to use now with .jpg and .tif and am getting back a 'File Not associated'
>>>
>>>However, If I double click the same file, Paint opens them up both no problem. I can also see in Control Panel..Default Programs that these two types of file seem to be correctly associated
>>>
>>>Should ShellExecute work with all associated files or do I need to change something
>>>
>>>Command I am using :lnRetVal = Shellexecute(0,"Open",lcFile,"","",3)
>>>
>>>Tia
>>>Gerard
>>
>>What is the value of lnRetVal?

BTW try to put some quotes around the name of the file.
If you have spaces in path that also can cause troubles:
nRetVal = Shellexecute(0,"Open",["]+lcFile+["],"","",3)
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform