Try this if you are trying to execute a .sql file in SSMS:
:r C:ScriptsScript1.sql
:r C:ScriptsScript2.sql
:r C:ScriptsScript3.sql
...
note: for this to run turn on sql command mode (Query > SQLCMD Mode)
If these are scripts you run fairly often you might consider dropping them in a stored proc and running them that way...
You can also do it through sqlcmd (which I believe is more common):
sqlcmd -S serverNameinstanceName -i C:ScriptsScript1.sql
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…