What is the aim of the exercise? First you mentioned opening the command window and typing something in, which implies user interaction, but now it seems you simply want to 'write a code', which may not require running CMD.EXE at all.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
|