search

Home  >  Q&A  >  body text

File Reading - How to read U disk files with javascript?

1. Insert the U disk
2. Automatically open a file in the U disk
3. There is no need to consider the list of files in the U disk, it can be implemented in the simplest and most direct way
4. If js is not possible, how can it be achieved?

迷茫迷茫2786 days ago1036

reply all(3)I'll reply

  • 我想大声告诉你

    我想大声告诉你2017-05-19 10:32:40

    There are quite a few questions like this, please search more.

    http://stackoverflow.com/ques...

    After testing, it can be read directly. But there is no way to read it automatically (there will be security issues).

    reply
    0
  • 迷茫

    迷茫2017-05-19 10:32:40

    js doesn’t work, but node does. Run in the background, check to see if the USB disk is there every once in a while, and operate it if it is. This is the simplest and most crude method.

    reply
    0
  • 仅有的幸福

    仅有的幸福2017-05-19 10:32:40

    js is ok, but it depends on the environment. It won’t work in the browser anyway

    reply
    0
  • Cancelreply