lua - os.execute start is only giving the browser the first parameter -


as far see when browser opens, get's first param (hi). thanks

os.execute("start http://www.mywebsite.com?id=hi&name=cool") 

short answer: use os.execute("start http://www.mywebsite.com?id=hi^&name=cool")

os.execute passes request system command interpreter, seem realize because used 'start' command. in windows command interpreter, & command separator, you're executing 2 separate commands:

  1. start http://www.mywebsite.com?id=hi
  2. name=cool

to stop windows interpreting & command separator, need escape ^.


Comments