yab | yet another Basic for HAIKU

Full Version: help me understand how the launch function works
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi! I'm trying to pass command-line parameters to the application being launched. But I can't do it. What am I doing wrong?

launch "/boot/system/apps/WebPositive" - this works (WebPositive launched)
launch "/boot/system/apps/WebPositive google.com" - this NOT works (WebPositive NOT launched)

But, if I run the command in the terminal:

/boot/system/apps/WebPositive google.com
, this opens browser with website.

WebPositive is an example command. I would like to pass parameters to different applications. For example, it would be convenient to open a text document in "Pe"
How do I do this? How do i pass parameters to the launching application?
system("WebPositive google.com &")
Free Web Hosting