I know of three methods:
1) You can pass simple variables on the command line, but be aware that the command line in DOS/Windows/NT is about 250 characters max (and part of this is taken up by the path to the program itself!)
2) You can use COM/ActiveX to have one program call the other
3) You can store values in a 3rd location (file, database, registry, active directory, etc.)
Chip H.