Leverage fileapi for opening files on windows
#13178
Merged
fileapi for opening files on windows
#13178