Replacing revolver barrels isn't something to be attempted UNLESS you are willing to spend some fairly big bucks on tooling, and learn the right way to use it.
So you can see what's involved, here's how to re-barrel a revolver:
First, S&W revolvers have gone through many changes over the years and barrels MAY not interchange at all, or ribs and lugs may not match up with the frame.
USED barrels MAY not be usable AT ALL.
When changing barrel lengths, you often have to also change ejector rods.
After making sure the barrel is compatible AND usable, the old barrel is removed by using a fitted barrel vise and a fitted frame wrench.
WARNING: The old "hammer handle through the frame" trick is pretty well guaranteed to bend, spring, crack, or break the frame.
Many good guns have been ruined by this "shade tree gunsmith" trick.
DON'T DO IT, no matter who tells you it's OK and works fine.
They won't be standing by to buy you a new gun.
With the barrel off, the replacement is screwed on and how much rotation is needed to bring the front sight up to top-dead-center is judged.
The barrel is put in a lathe and the required amount of metal is turned off the barrel shoulder.
The barrel is screwed on and torqued properly, again using barrel blocks and a frame wrench.
The barrel/cylinder gap is properly cut to specs using a special cutter kit that works down the bore.
After the barrel/cylinder gap is set, the forcing cone is cut, using another special cutter kit that also works down the bore, AND a by very carefully measuring with a special forcing cone gage.
The barrel/cylinder gap MUST be set to a narrow spec or accuracy is lost and the gun can spit bullet fragments.
The forcing cone ABSOLUTELY MUST be cut in a new barrel, or re-cut in a used barrel.
The CRITICAL measurement is the outside diameter of the forcing cone.
If that diameter is slightly too big or too little, accuracy is gone.
The specification is VERY narrow, and it CANNOT be "eyeballed"
After the barrel work is finished, if a different length barrel was installed, the ejector rod assembly must be changed out.
The tooling is expensive, and there ARE no "expedient" methods that won't potentially ruin a good gun.
The old "make it work" gunsmiths used the hammer handle, a file to set barrel/cylinder gap, and never even suspected there was something needed in the forcing cone.
This is also why many otherwise fine old S&W and Colt revolvers won't shoot well. A close look finds "tweaked" frames, cracks through the frame's barrel thread area, and other damage.
Bottom line: If you want a revolver re-barreled, either find a qualified pistolsmith, or buy the tools and learn how to use them.
Otherwise, what USED to be a nice gun, is just another piece of junk like so many others.