Escaping Quotes?

Andrew Kluthe andrew at rjdfarm.com
Wed Mar 31 17:21:12 EDT 2010


This works! It just needed double the quotes on the outside. Thank you
zryip!

On Wed, Mar 31, 2010 at 2:26 PM, zryip theSlug [via Runtime Revolution] <
ml-node+1747251-990143032-139833 at n4.nabble.com<ml-node%2B1747251-990143032-139833 at n4.nabble.com>
> wrote:

> 2010/3/31 Andrew Kluthe <[hidden email]<http://n4.nabble.com/user/SendEmail.jtp?type=node&node=1747251&i=0>>:
>
>
> >
> > I tried what is recommended in this post
> >
> >
> http://n4.nabble.com/put-shell-and-escaping-quotes-how-to-do-this-td991042.html#a991074
> >
> > but the shell still ends up getting it with no quotes and effectively
> > breaking it.
> >
> > put quote & "C:\Program Files\Visual CUT 11\Visual CUT.exe" & quote & "
> -e"
> > into vcPath
> >
> > put quote & "C:\Rev\FOM2\Lease Reports\All
> > Leases\LeasePaymentsbyLeaseName.rpt" & quote into sReportName
> >
> > put quote & "Parm1:2010" & quote into sParams
> >
> > put "[[vcPath]] [[sReportName]] [[sParams]]" into sCommand
> > put shell( merge(sCommand) )
> >
> >
> > This outputs the same message from the console that I would get if I put
> it
> > straight in with no quotes:
> >
> > 'C:\Program' is not recognized as an internal or external command,
> > operable program or batch file.
> > --
>
> This code works fine for me to open a pdf with acrobat:
>
> put shell(quote&quote&"C:\Program Files\Adobe\Acrobat
> 5.0\Reader\AcroRd32.exe"
> &quote&&quote&"C:\Program Files\Revolution
> Enterprise\4.0.0-gm-1\Documentation
> \pdf\First Stack - Part One.pdf"&quote&quote)
>
> Note that I double the quote at start and end of the string.
>
> If I transpose this test to your case I obtain:
>
> put quote&"C:\Program Files\Visual CUT 11\Visual
> CUT.exe"&quote&&"-e"&&quote&"C:\Rev\FOM2\Lease
> Reports\All
> Leases\LeasePaymentsbyLeaseName.rpt"&quote&&quote&"Parm1:2010"&quote
> into sCommand
> put shell(quote&sCommand&quote)
>
> How this code works for you?
>
> For me it returns "The system cannot find the path specified.". Not
> really odds because Crystal Report is not installed on my PC. ;)
>
> Regards,
>
> --
> -Zryip TheSlug- wish you the best! 8)
> http://www.aslugontheroad.co.cc
>
> _______________________________________________
> use-revolution mailing list
> [hidden email]<http://n4.nabble.com/user/SendEmail.jtp?type=node&node=1747251&i=1>
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
>
> ------------------------------
>  View message @
> http://n4.nabble.com/Escaping-Quotes-tp1746959p1747251.html
> To unsubscribe from Re: Escaping Quotes?, click here< (link removed) ==>.
>
>
>

-- 
View this message in context: http://n4.nabble.com/Escaping-Quotes-tp1746959p1747401.html
Sent from the Revolution - User mailing list archive at Nabble.com.



More information about the use-livecode mailing list