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:
GLOBAL commandline$ = GETCOMMANDLINE$()
commandline$=REPLACE$(commandline$, GETCURRENTDIR$(), "")
Then its works as intended. Something you should add to the document file.
I believe there is a difference when running from the command line and from an icon/run from GLBasic...