1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Is there a way to urlencode strings in v10?

Discussion in 'Support' started by myarmor, Feb 19, 2009.

  1. myarmor

    Joined:
    May 30, 2008
    Messages:
    65
    Likes Received:
    1
    Hello.. I'm looking for a way to properly urlencode urls as the normal behaviour of these kinds of strings when containing certain chars sometimes results in bad consequences (and sometimes unexplained seriously bad consequences).

    I've been trying to use copy to retrieve a webpage with the "I'm feeling lucky" thingy, and while constructing this I did have some problems making TCC not treating it as several commands.

    One issue, which I really can't explain is that it suddenly started to delete
    the entire D: drive, and this without any del(ete) command or parameters to force it to do so in sight.

    Currently I use:
    Code:
    set urltoget=%@REPLACE[ ,+,http://www.google.com/search?q=%%22%@UNQUOTE[%1]%%22+site:animenewsnetwork.com^&num=10^&complete=0^&btnI=Jeg+prøver+lykken]
    copy "%urltoget" xx.htm
    
    to retrieve the page (which apparently works properly).
     

Share This Page