Command() results different from CreateProcessA vs dos box

I have an hand coded app called from another hand coded app.

Caller uses createProcessA to call 2nd program.

I print out the command line of the createProcessA prior to calling then 2nd program.

The value for Command(’’) and Command(‘1’) in the 2nd program changes when the program is called from a dos box vs the createprocessA using the same command line.

Say this is the command line

B.exe one two

when called from CreateProcessA

command(’’) returns “{space}B.exe one two”
command(‘1’) returns B.exe

when called from a dos box
command(’’) returns “{space} one two”
command(‘1’) returns one

Any ideas?

re-compiled calling program - now it works the same from createprocessa and dos box.

This is almost worse as I have no idea if it will break again after release.