Accessing computer files and folders with script

I want to know if I can make the game access the player's computer files and folders with script. I actually only want it for story purposes, so it's not important that the game actually opens, deletes or does anything with the files... it's just supposed to show a "load file" window that lists files and folders from the players own PC. It could be an actually Windows window, or maybe the script could just retrieve a list of folder and file names and I could design the window myself (better, actually).

Can it be done? I saw some methods online, but none of them worked.
yes and no

yes, there are javascript commands to access the folder structure.

the problem is the antivirus on the player's computer. Depending on how strict or loose someone has their computer protected, it is the duty of the antivirus to prevent any and all such access.

after all, how can the computer know that the HTML-game trying to access the computer is not a website trying to infect the computer with a virus?

Practically and in most cases the game has only access to its own folder, nothing outside or above it.
and that means you can easily fake that with a screenshot of your own folder.

mostly those functions are used to check for installed DLC or to create your own savefiles, all of which are limited to the game's folder itself.
Alright, makes sense. So I guess this applies to any information I might get from user's PC, like windows username?

Maybe I can just create a generic simulation of the game opening the player's folder, like Documents/Images or something.

Original thread: https://forums.rpgmakerweb.com/threads/accessing-computer-files-and-folders-with-script.175693/