Thank you for your answer.
I solved the problem starting from your suggestion and making a sligth change.
Step 1)
I run a first simulation.
2)
I copied the .do file in the directory modelsim/simulation in another .do file with
MySim.do name
3)
I added the necessary commands in the
MySim.do file.
4)
I set the Simulation settings enabling the "Compile test bench" radio butto and checking the "Use script to set up simulation" checkbox.
I also inidcated the
simulationMySim.do file as the script to set the simulation.
In this way the simulation directly comes out as required and reflects all the changes in the testbench.
Further,
if I want to run the simulation again without restarting ModelSim,
I simply run the "do
MySim.do" command in the "ModelSim -> Transcript " window.