QB64 Phoenix Edition
Tip: How to get your pathed program name - Printable Version

+- QB64 Phoenix Edition (https://qb64phoenix.com/forum)
+-- Forum: QB64 Rising (https://qb64phoenix.com/forum/forumdisplay.php?fid=1)
+--- Forum: Code and Stuff (https://qb64phoenix.com/forum/forumdisplay.php?fid=3)
+---- Forum: Utilities (https://qb64phoenix.com/forum/forumdisplay.php?fid=8)
+---- Thread: Tip: How to get your pathed program name (/showthread.php?tid=118)



Tip: How to get your pathed program name - bplus - 04-22-2022

Code: (Select All)
PathedProgram$ = Command$(0) 'or process commands sent
Print PathedProgram$



RE: Tip: How to get your pathed program name - dcromley - 04-22-2022

Thanks, I have wanted this.
1) Is this new? (how long?)
2) It's not documented (in the Wiki).


RE: Tip: How to get your pathed program name - bplus - 04-22-2022

Dang for 4 minutes now been trying to post a reply, between new OS and new forum and new browser sheesh!

Anyway new QB64 wiki for Command$ https://qb64.dijkens.com/wiki/COMMAND$.html
does not mention this nor the newer _CommandCount

The example for _CommandCount:
Code: (Select All)
limit = _COMMANDCOUNT
FOR i = 1 TO limit
    PRINT COMMAND$(i)
NEXT

Oddly skips over 0

Maybe this should be included there?


RE: Tip: How to get your pathed program name - SMcNeill - 04-22-2022

Friendly tip: https://qb64phoenix.com/qb64wiki/index.php/Main_Page -- try this for a new wiki.

The one you linked to is a read-only backup, though I hope it stays up. It's always a good idea to have something to fall back on! ?


RE: Tip: How to get your pathed program name - bplus - 04-22-2022

Thank you that seems to be working without a spinner, so better, re-bookmarked that site.


RE: Tip: How to get your pathed program name - dcromley - 04-23-2022

@SMcNeill @bplus
1) I also had the read-only link.
2) Who do you want to have access to change the Wiki? I hit the "edit" tab and it looks like I <i>could</i> make changes. I would register before I did anything.
3) Is there somebody who checks changes? I would think <i>somebody</i> would want to check for consistency.
4) I would be willing to make changes, but I'm not prolific (like some of you).


RE: Tip: How to get your pathed program name - bplus - 04-23-2022

Quote:@SMcNeill @bplus
1) I also had the read-only link.
2) Who do you want to have access to change the Wiki? I hit the "edit" tab and it looks like I <i>could</i> make changes. I would register before I did anything.
3) Is there somebody who checks changes? I would think <i>somebody</i> would want to check for consistency.
4) I would be willing to make changes, but I'm not prolific (like some of you).



@dcromley  did you see whole board below dedicated to Wiki at this forum?


RE: Tip: How to get your pathed program name - mdijkens - 04-25-2022

I leave https://qb64.dijkens.com/wiki/ up and running
Maybe updating it every now and then (just ask)