Shellexecute_() in Linux

Just starting out? Need help? Post your questions and find answers here.
shire
User
User
Posts: 46
Joined: Mon Jul 25, 2011 5:24 am

Shellexecute_() in Linux

Post by shire »

Hello,

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

Thanks.
User avatar
idle
Always Here
Always Here
Posts: 5839
Joined: Fri Sep 21, 2007 5:52 am
Location: New Zealand

Re: Shellexecute_() in Linux

Post by idle »

system_(comand.s)
Windows 11, Manjaro, Raspberry Pi OS
Image
shire
User
User
Posts: 46
Joined: Mon Jul 25, 2011 5:24 am

Re: Shellexecute_() in Linux

Post by shire »

A function that will open the file like:
ShellExecute_(0, "", image.zip, "", "", #SW_SHOWNORMAL)
Is there something like that?
Little John
Addict
Addict
Posts: 4777
Joined: Thu Jun 07, 2007 3:25 pm
Location: Berlin, Germany

Re: Shellexecute_() in Linux

Post 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
shire
User
User
Posts: 46
Joined: Mon Jul 25, 2011 5:24 am

Re: Shellexecute_() in Linux

Post by shire »

@Little John:

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