Page 1 of 1

Shellexecute_() in Linux

Posted: Tue Jul 03, 2012 5:06 am
by shire
Hello,

Is there a function in Linux which is equivalent to Shellexecute in Windows?

Thanks.

Re: Shellexecute_() in Linux

Posted: Tue Jul 03, 2012 7:18 am
by idle
system_(comand.s)

Re: Shellexecute_() in Linux

Posted: Tue Jul 03, 2012 9:20 am
by shire
A function that will open the file like:
ShellExecute_(0, "", image.zip, "", "", #SW_SHOWNORMAL)
Is there something like that?

Re: Shellexecute_() in Linux

Posted: Tue Jul 03, 2012 10:17 am
by Little John
shire wrote:A function that will open the file like:
ShellExecute_(0, "", image.zip, "", "", #SW_SHOWNORMAL)
Is there something like that?
Open the directory, file, or URL name$ with its default application:

Code: Select all

RunProgram("xdg-open", name$, "")
Regards, Little John

Re: Shellexecute_() in Linux

Posted: Tue Jul 03, 2012 11:32 am
by shire
@Little John:

Yes, that's it. Thanks a lot. :)