Q:  How do I get everything on the command line?  In other words I would like a piece of code that would do the following....

Given the DOS execute line of
     utils.exe c:\oscar d:\colpas "oscar           colpas"

I would like to get the three parameters into variables in my pascal program to have these string values....

a = "c:\oscar"
b = "d:\colpas"
c = "oscar           colpas"

Using ParamStr would ignore the spaces in between oscar and colpas.

A:

A:  Delphis System Unit has a variable called CmdLine which points to the full command line (zero-terminated). You can copy it into a Pascal String with StrPas( CmdLine );