Switch battery while running
In my experience SOME laptops will run with the battery removed and others do not.  I'm sure it's due to how the unit's power system is designed and I have never seen this &quot;feature&quot; advertised.
The only way I've been able to determine one vs. the other is to try it and see.
But if you are on battery power ONLY and pull the battery, it will go down immediately.  Plug it into an external power source if you want any hope of having this work.