Sorry,
the correct sentence is:
SHELL '%COMSPEC% /C REGEDIT /S "myFileReg.txt"'

John,
I read carefully your reply and the example you show works but the real trouble is I don't now how to save the main subtrees (HKEY_...).

Thanks a lot.