GETCOMMANDLINE$() adding path? (but easy work around).

Previous topic - Next topic

spacefractal

this due its not just take argument, but also the whole path, which is not needed at all?

or something I have misunderstanding here?

A easy workaorund is throught do this:
Code (glbasic) Select

GLOBAL commandline$ = GETCOMMANDLINE$()
commandline$=REPLACE$(commandline$, GETCURRENTDIR$(), "")


Then its works as intended. Something you should add to the document file.
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

MrTAToad

I believe there is a difference when running from the command line and from an icon/run from GLBasic...