QB64.org Forum
Active Forums => QB64 Discussion => Topic started by: hanness on December 13, 2020, 02:05:19 pm
-
This may be something I once asked a long time ago, but for the life of me I can't recall. Let's say I write a program in QB64 and call it "MyProgram.exe". What do I need to put in that program to read parameters passed to it on the command line line? For example, if I call my program by running "MyProgram.exe option1 option2 option3". In addition, how can my program determine how many parameters are being passed to it?
Thanks!
-
https://www.qb64.org/wiki/COMMAND$ (https://www.qb64.org/wiki/COMMAND$)
-
Beautiful! Thanks so much.
-
You can drag and drop files onto your exe and get their names from COMMAND$.