switch for windows

I have not tested this as I dont have windows to hand at the mo