08-22-2025, 11:33 AM
why do you need two variables? to determine how many parameters. are passed from the command line?
that's all there is to it.
if you need the length of the entire command line, use len() on the string.
Code: (Select All)
Option _Explicit
Dim cmd$, count1%
Open "text.txt" For Output As #1
count1% = _CommandCount
cmd$ = Command$(count1%)
'rest of program
':if you need the length of the entire command line, use len() on the string.

