The prevention to this problem is to goto CONTROL PANEL > FOLDER OPTIONS > FILE TYPES
now one-by-one select the following and click ADVANCED choose EDIT and click DEFAULT:-
.VBS, .BAT, ..JS, .KEY, .REG, .WSF

By making EDIT as the default option these executable scripts will automatically display their content and when you have reviewed it then you can rightclick and select the appropriate option.