Can't run a program with a space in the path under Windows



  • I'm trying to run a program like this:

    "E:\mt\Mystery Emulator Pack\bgb (GB, GBC)\bgb.exe"

    This syntax works if I write it in command prompt. If I write this in freeter (with a sleep command so I can see the output):

    '""E:\mt\Mystery' is not recognized as an internal or external command,
    operable program or batch file.

    Something weird has gone on with quoting or escaping (I can only presume). Similarly with no quotes

    'E:\mt\Mystery' is not recognized as an internal or external command,
    operable program or batch file.

    "Don't use spaces" is not an acceptable response as everything in windows probably lives under "C:\Program Files".

    Side note: There really should be some way to get the output of a command so you can see what happened.



  • I worked around this case by using opener and telling it to "open" the executable file. But the problem stands as I might want to write a proper command giving a path to an executable.



  • @mrhthepie How did you run the program before you moved to the opener widget? Commander widget?


Log in to reply
 

Looks like your connection to Freeter Forum was lost, please wait while we try to reconnect.