1. vsim -c -do run.do -l vsim.log -wlf vsim.wlf
2. the contents of run.do:
log -r /*
run -all
exit -f
you can see the vsim.wlf file in your simulation directory. Next time you can load vsim.wlf into modelsim, then you can look the waveforms of all signals.