I think you will have to make system calls.
system () is like writing a command on the command line of the local system (which is my understanding of anywayz)
I can’t do what you did on Windows 7. I need to call explorer and it opens in my browser by default.
Windows 7: ( Chrome, )
system("explorer file:///C:/path_to_file")
: :/// , , .