Quick Links: Download Gideros Studio | Gideros Documentation | Gideros community chat | DONATE
open a folder via app — Gideros Forum

open a folder via app

MoKaLuxMoKaLux Member
edited December 2020 in General questions
my fellow developers :)
Is it possible to have a link (a button, or a textfield...) in my app to open a folder on my system (windows10) and actually showing it?
I tried application:openUrl("|D|") but that doesn't work.
Also had a look at LFS but no such option available.
Thank you.
my growING GIDEROS github repositories: https://github.com/mokalux?tab=repositories
Tagged:

Comments

  • rrraptorrrraptor Member
    edited December 2020 Accepted Answer
    You can use
    os.execute("start C:/path/to/folder")
    Or if your path contains spaces:
    local path = "H:\\ShdowPLAY\\TMP\\Mafia  Definitive Edition"
    --local path = "H:/ShdowPLAY/TMP/Mafia  Definitive Edition" -- same
    os.execute("start \"\" \"" .. path .. "\"")

    Likes: MoKaLux

    +1 -1 (+1 / -0 )Share on Facebook
  • MoKaLuxMoKaLux Member
    edited December 2020
    oh I wasn't even aware that gideros had an os class.

    This is pure genius rrraptor
    "Mafia Definitive Edition" :)

    https://wiki.gideros.rocks/index.php/Os.execute

    <3 <3 <3

    Likes: big_bruhh0

    my growING GIDEROS github repositories: https://github.com/mokalux?tab=repositories
    +1 -1 (+1 / -0 )Share on Facebook
  • MoKaLuxMoKaLux Member
    edited December 2020
    does anybody have another use for os.execute(...)?
    that would be good to know :)
    I looked for c function and tried this:
    os.execute("dir")
    os.execute("dir "..lfs.currentdir())
    but nothing happens :)
    my growING GIDEROS github repositories: https://github.com/mokalux?tab=repositories
Sign In or Register to comment.