Command-line arguments: Difference between revisions

Content added Content deleted
No edit summary
Line 195: Line 195:
echo !parameter[%%a]!
echo !parameter[%%a]!
)</lang>
)</lang>

=={{header|Delphi (all versions)}}==

// The program name and the directory it was called from are in
// param[0] , so given the axample of myprogram -c "alpha beta" -h "gamma"

for x := 0 to paramcount do
writeln('param[',x,'] = ',param[x]);

// will yield ( assuming windows and the c drive as the only drive) :

// param[0] = c:\myprogram<br>
// param[1] = -c<br>
// param[2] = 'alpha beta'<br>
// param[3] = -h<br>
// param[0] = gama<br>


=={{header|E}}==
=={{header|E}}==