GLBasic forum

Main forum => Bug Reports => Topic started by: spacefractal on 2012-Mar-24

Title: GETCOMMANDLINE$() adding path? (but easy work around).
Post by: spacefractal on 2012-Mar-24
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.
Title: Re: GETCOMMANDLINE$() adding path? (but easy work around).
Post by: MrTAToad on 2012-Mar-24
I believe there is a difference when running from the command line and from an icon/run from GLBasic...