Code Comments
Programming Forum and web based access to our favorite programming groups.I am in over my head here... How do you setup an external call to a program on a client machine? I don't need to pass any parameters between the two, just "Program", "File to Open" (file to open is a variable stored in the database) My example will be Acrobat... If I hard code the "path\acrobat.exe filename" in an imbed it works fine, however I do not know which version of Acrobat is being used on the client, and therefore I can not specify a hard coded path. Windows knows how to find the program thru the RUN button, is there a way to access those resources? Thanks in advance, /\/\ark
Post Follow-up to this messageUse ShellExecute. The easiest way I know of is by using the Free Internet Link template. Use it to call the filename implicitly and it will launch the file using it's default application. I forgot where to get that template but if you can't find it email me. "Mark Kromm" <mkromm@fcc-eng.com> wrote in message news:PxH1c.6$vQ4.2735@news.abs.net... > I am in over my head here... > > How do you setup an external call to a program on a client machine? I don't > need to pass any parameters between the two, just "Program", "File to Open" > (file to open is a variable stored in the database) > > My example will be Acrobat... > > If I hard code the "path\acrobat.exe filename" in an imbed it works fine, > however I do not know which version of Acrobat is being used on the client, > and therefore I can not specify a hard coded path. > > Windows knows how to find the program thru the RUN button, is there a way to > access those resources? > > Thanks in advance, > /\/\ark > >
Post Follow-up to this messageThis worked, Thank you. "Kingsley Klosson" <kklosson@earthlink.net> wrote in message news:iVH1c.32632$hm4.10195@newsread3.news.atl.earthlink.net... > Use ShellExecute. The easiest way I know of is by using the Free Internet > Link template. Use it to call the filename implicitly and it will launch > the file using it's default application. I forgot where to get that > template but if you can't find it email me. > > "Mark Kromm" <mkromm@fcc-eng.com> wrote in message > news:PxH1c.6$vQ4.2735@news.abs.net... > don't > Open" fine, > client, way > to > >
Post Follow-up to this messageIn article <iVH1c.32632$hm4.10195@newsread3.news.atl.earthlink.net>, kklosson@earthlink.net says... > Use ShellExecute. The easiest way I know of is by using the Free Internet > Link template. Use it to call the filename implicitly and it will launch > the file using it's default application. I forgot where to get that > template but if you can't find it email me. You can use freeware or commercial SHELLEXECUTE API templates to do this. My recommendation! HyperActive - Although this is a commercial Clarion add-on, currently, you can apply for free ClarionShop catalog, and free copy of CapeSoft HyperActive, AND also you are entered in the Big Prize Giveaway. Vendor Name - ClarionShop Catalog, Contact - Bruce Johnson Primary ID - Clarion Accessories - Order Catalog Internet Link - http://www.clarionshop.com/catorder.asp?promo=C6News Freeware SHELLEXECUTE templates Product Description - Internet Link Template, MFG - POSitive Software Company Internet Link - http://www.clarioncentral.com/freestuff.htm Product Description - PowerRUN, MFG - Berthume Software Internet Link - http://www.berthume.com/powerrun.htm Vendor Name - Sterling Data Freeware Source, Contact - Mike McLoughlin Primary ID - Hosted By Sterling Data Email Address - mailto:mike@sterlingdata.com Internet Link - http://www.sterlingdata.com/lib.htm Product Description - SHELLEX.ZIP 10K Template to run external apps using ShellExecute Commercial Add-on SHELLEXECUTE template Product Description - HyperActive, MFG - CapeSoft Internet Link - http://www.capesoft.com/accessories/hypersp.htm HyperActive is SHELLEXECUTE on steroids! HIGHLY recommended David > > "Mark Kromm" <mkromm@fcc-eng.com> wrote in message > news:PxH1c.6$vQ4.2735@news.abs.net... > don't > Open" > client, > to > > > -- From David Troxell - Product Scope 32 PRO - Encourager Software Email - mailto:DavidT@encouragersoftware.com Clarion Third Party Profile Exchange Online http://encouragersoftware.com/profile/clarlinks.html http://www.encouragersoftware.com/
Post Follow-up to this messagePowered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.