>>
>>Try:
>>
>>lnResult =Shellexecute(0, tcCommand, ["] + tcFileName +["], tcParameter,tcDirectory,tnShowCommand)
>>
>>
>>
>
>So far what I see in your example that I am thinking of changing is adding the double quotes around the file name. In my code I simply pass the file name that includes the folder location of the file. I may change it in my code too; but I am thinking of any possible side effect that I may have with these double quotes. And as I mentioned, on my computer, my sample file works without double quotes. The only other thing is maybe his OS (I believe Windows 7) could be blocking my app. Possible?
I am with Windows 7 and have no problems.
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.