use im_file and om_file on windows

View thread