search

Home  >  Q&A  >  body text

javascript - How do you use node or JS to get the desktop path of windows?

I can now automatically generate a PDF, and then I need to automatically save the PDF to the desktop folder of Windows, but I don’t know how to get the path of the desktop folder of Windows. . . Either node or Js is fine, thank you everyone~

给我你的怀抱给我你的怀抱2781 days ago804

reply all(1)I'll reply

  • 世界只因有你

    世界只因有你2017-05-16 13:35:10

    I haven’t used Windows for many years, so I don’t need to obtain this path, just hardcode it. Similar to mac's 'file:///Users/xxx/Desktop/'

    reply
    0
  • Cancelreply